You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong #18919
changed the title [-][Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom to max, work wrong[/-][+][Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong[/+]on Jul 21, 2023
minValueSpan is about zoom window size and it correctly does that in your example: min window size is 2 units, max window size is 4 units.
Where is the problem?
minValueSpan is about zoom window size and it correctly does that in your example: min window size is 2 units, max window size is 4 units. Where is the problem?
when window size is 2, continue zoom in, expect nothing happen, actually trigger translate.
It seems a little hard to accept.
I guess because the source code does not deal with the minimum scaling, still adjust the position based on the new zoom center, which is no problem in the algorithm, but it looks strange in the interaction
ok, I see and agree, this is a bug on mouse scroll.
Scrolling the mouse should perform only zoom-in and zoom-out, not move (translate) the zoom window.
Mouse click + drag should be the only way to shift the zoom window.
The current mix of the two is confusing to users.
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
Activity
[-][Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom to max, work wrong[/-][+][Bug] When dataZoom both set minValueSpan and maxValueSpan, zoom in to max, work wrong[/+]helgasoft commentedon Aug 5, 2023
minValueSpan is about zoom window size and it correctly does that in your example: min window size is 2 units, max window size is 4 units.
Where is the problem?
kitee0325 commentedon Aug 6, 2023
when window size is 2, continue zoom in, expect nothing happen, actually trigger translate.
It seems a little hard to accept.
I guess because the source code does not deal with the minimum scaling, still adjust the position based on the new zoom center, which is no problem in the algorithm, but it looks strange in the interaction
helgasoft commentedon Aug 6, 2023
ok, I see and agree, this is a bug on mouse scroll.
Scrolling the mouse should perform only zoom-in and zoom-out, not move (translate) the zoom window.
Mouse click + drag should be the only way to shift the zoom window.
The current mix of the two is confusing to users.
github-actions commentedon Aug 5, 2025
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
github-actions commentedon Aug 13, 2025
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!