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 position bugs when series data only one #21245
Hi! Had something very similar happen to me. Here's a minimal reproduction. In this case the datazoom is shown misplaced but at least it is shown in the bottom, where I configured it to be.
I found out about two weird cases where this bug doesn't happen:
If you uncomment the additional data point I left on the reproduction, the data zoom goes back to its original position. However, if you change the time on the second data point to be the same as in the first data point, the datazoom again gets misplaced.
If you add another series before the one causing the issue, even if it does not have any data, the datazoom works. For example: { type: 'line', data: [] }.
Hope this sheds a light on the original issue :)
Reacted by Huynh Quang Phuc, prada-oksystem and Matthias
I confirmed this no longer reproduces on master.
It seems to be fixed by #21196 which is not included in current 6.0.0 yet, so it still reproduces in the current online examples / released build.
Activity
Justin-ZS commentedon Sep 5, 2025
fixed in #21196 ?
hks2002 commentedon Oct 25, 2025
unaipme commentedon Nov 5, 2025
Hi! Had something very similar happen to me. Here's a minimal reproduction. In this case the datazoom is shown misplaced but at least it is shown in the bottom, where I configured it to be.
I found out about two weird cases where this bug doesn't happen:
{ type: 'line', data: [] }.Hope this sheds a light on the original issue :)
takaebato commentedon May 3, 2026
I confirmed this no longer reproduces on master.
It seems to be fixed by #21196 which is not included in current 6.0.0 yet, so it still reproduces in the current online examples / released build.
hks2002 commentedon Jul 28, 2026
in v6.1.0 #21196 merged.