Closed
Description
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:
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)
Live demo with steps to reproduce
Product version
Highcharts: 11.1.0
Metadata
Metadata
Assignees
Type
Projects
Status
Done