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 misplaced when series has only one data point #21195
Uncomment or comment the marked data point to toggle between the buggy and correct positioning of dataZoom
Current Behavior
Since version 6.0.0, when a series has only one data point, the dataZoom control is not positioned below the graph as expected — instead, it renders in an incorrect location.
With one data point
With more data points
Expected Behavior
The dataZoom control should be positioned consistently below the graph, regardless of the number of data points.
As a temporary fix, set showDataShadow to false in the dataZoom object. With only one data point, the absence of the data shadow shouldn't be a problem.
Activity
fix(dataZoom): handle NaN rect coords in positionGroup. close apache#…
alesmit commentedon Aug 14, 2025
As a temporary fix, set
showDataShadowtofalsein the dataZoom object. With only one data point, the absence of the data shadow shouldn't be a problem.fix(dataZoom): handle NaN rect coords in positionGroup. close apache#…