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] Datazoom bar in time chart does not accurately reflect chart if data is distributed evenly across time #20374
Use time series data that does not have equal size steps between each data point.
Current Behavior
Currently the datazoom bar view is scaled to the points, meaning that the 50th% point is in the middle of the bar, however this is not how the chart itself functions, there the 50th% point in terms of time is in the middle of the chart. Selecting a part of the chart already works as expected, e.g. 90%-100% means that the last 10% of time is shown.
Expected Behavior
The data zoom shows the correct line corresponding to the graph (like the basic example below.)
duplicate of #19930, also see #18754, #19255, etc.
The example is very good though. You found the cause of the problem - "time series data that does not have equal size steps between data points"
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
helgasoft commentedon Sep 27, 2024
Minimal Reproduction is not relevant to issue, has no dataZoom...
luukvnes commentedon Sep 27, 2024
Sorry I forgot to save the jsfiddle.
This is the new version. (I also updated the original text)
https://jsfiddle.net/zecv4mhy/
helgasoft commentedon Sep 27, 2024
duplicate of #19930, also see #18754, #19255, etc.
The example is very good though. You found the cause of the problem - "time series data that does not have equal size steps between data points"
purpletastes commentedon Oct 10, 2024
暗室逢灯
purpletastes commentedon Oct 10, 2024
1111
purpletastes commentedon Oct 10, 2024
github-actions commentedon Oct 10, 2026
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 Oct 18, 2026
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!