echarts icon indicating copy to clipboard operation
echarts copied to clipboard

fix: dataZoom incorrectly filters stacked data

Open archiewood opened this issue 3 months ago • 3 comments

Brief Information

This pull request is in the type of:

  • [x] bug fixing
  • [ ] new feature
  • [ ] others

What does this PR do?

fixes #21371 dataZoom + stacked series + scale causing missing datapoints.

Fixed issues

#21371

Details

Before: What was the problem?

DataZoom calculated valueWindow from stacked extents but filtered using original (unstacked) dimension values, causing incorrect point removal.

After: How does it behave after the fixing?

Transform dimensions to use stackResultDimension before filtering.

Document Info

One of the following should be checked.

  • [x] 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

N.A.

Merging options

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

archiewood avatar Nov 12 '25 21:11 archiewood

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.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

echarts-bot[bot] avatar Nov 12 '25 21:11 echarts-bot[bot]

updated to conform to PR template

archiewood avatar Nov 18 '25 21:11 archiewood

Let me know if there is anything you would like me to do here, for example the refactor I mentioned above

archiewood avatar Dec 01 '25 14:12 archiewood