Skip to content

Conversation

@plainheart
Copy link
Member

@plainheart plainheart commented Dec 17, 2025

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

This PR is to fix the following issues when alignTicks is enabled:

  1. Fix axis label may have inappropriate precision.
  2. Fix axis label takes too much unexpected space.

Fixed issues

Comparison

Before After
image image
image image
image image
image image

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

Security Checking

  • This PR uses security-sensitive Web APIs.

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

See the 6th/7th/8th test cases in test/axis-align-ticks.html

Merging options

  • Please squash the commits into a single one when merging.

Other information

…o much unexpected space when `alignTicks` is enabled
@echarts-bot
Copy link

echarts-bot bot commented Dec 17, 2025

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

@plainheart plainheart added this to the 6.0.1 milestone Dec 17, 2025
@plainheart plainheart requested review from Ovilia and pissang December 17, 2025 17:54
@github-actions
Copy link
Contributor

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-21430@eb45d17

@nuteu
Copy link

nuteu commented Dec 23, 2025

@plainheart 请问这个mr后续会回合到 5.x 版本吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment