Skip to content

fix(dataZoom): fix wrong position of the dataZoom when the series has only one data point #21196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alesmit
Copy link

@alesmit alesmit commented Aug 11, 2025

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fix position of the dataZoom control when the series has only one data point. Please refer to the linked issue for more details.

Fixed issues

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

ZRender Changes

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

@plainheart plainheart requested a review from 100pah August 11, 2025 16:46
@plainheart plainheart linked an issue Aug 11, 2025 that may be closed by this pull request
Copy link
Contributor

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

@plainheart plainheart changed the title fix(dataZoom): handle NaN rect coords in positionGroup. close #21195 fix(dataZoom): fix wrong position of the dataZoom when the series has only one data point Aug 11, 2025
@plainheart plainheart added this to the 6.0.1 milestone Aug 11, 2025
Copy link
Contributor

@Ovilia Ovilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adding test cases according to the wiki

@plainheart plainheart added the PR: regression fix This PR is to fix regression issues label Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] dataZoom misplaced when series has only one data point
3 participants