setData called twice without redraw causes wrong point update #8620
Labels
Status: Stale
This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur.
Type: Bug
Expected behaviour
Redraw argument of
series.setData()
used only for visual change.Actual behaviour
After point is removed, series array of points contains "empty" point and causes
setData
to run point update by default in some cases.Live demo with steps to reproduce
Single point is present, then removed (without redraw) and a new point is added (using
setData
, with later calledchart.redraw
).https://jsfiddle.net/BlackLabel/3cw2dteh/
Steps: press "remove" and after that "add"
Workaround
Call second
setData
withupdatePoints
argument set tofalse
- https://jsfiddle.net/BlackLabel/3cw2dteh/1/The text was updated successfully, but these errors were encountered: