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
I met the problem that if we dynamically set data for a treegraph series by series.setData method, the chart leaves links that must be deleted, or they are links between unexisting nodes.
If we do that by series.update({ data }) all works fine but links lost animation.
Expected behaviour
The chart leaves only links between existing nodes if data is updated by series.setData method.
Or another way if data is updated by series.update method, keep links animation.
Actual behaviour
After updating data by series.setData method, the chart leaves unnecessary links. And after some updates throw error:
highstock.src.js:45857
Uncaught TypeError: Cannot read properties of undefined (reading 'y')
at y.g (highstock.src.js:45857:1)
at highstock.src.js:1748:1
at Array.forEach (<anonymous>)
at f (highstock.src.js:1745:1)
at y.generatePoints (highstock.src.js:32552:1)
at y.t (highstock.src.js:47125:1)
at y.<anonymous> (highstock.src.js:914:1)
at y.h (boost.src.js:2976:1)
at b.<computed> (highstock.src.js:912:1)
at y.translate (highstock.src.js:32693:1)
Hello!
I met the problem that if we dynamically set data for a treegraph series by
series.setData
method, the chart leaves links that must be deleted, or they are links between unexisting nodes.If we do that by
series.update({ data })
all works fine but links lost animation.Expected behaviour
The chart leaves only links between existing nodes if data is updated by
series.setData
method.Or another way if data is updated by
series.update
method, keep links animation.Actual behaviour
After updating data by
series.setData
method, the chart leaves unnecessary links. And after some updates throw error:Live demo with steps to reproduce
Reproducing the bug
Product version
Highcharts: 11.1.0
The text was updated successfully, but these errors were encountered: