I am using Angular 15.2.0, highcharts 11.0.1, highcharts-angular 3.1.2 and highcharts-regression 2.2.0
I can create a Gantt chart but when I want to remove the current series to display a new series in the same chart, I get this error:
Code: Select all
main.js:36789 Caught Gantt removeSeries chart error: TypeError: Cannot read properties of undefined (reading 'label')
at V.B (vendor.js:26960:30)
at vendor.js:12177:23
at Array.forEach (<anonymous>)
at d (vendor.js:12176:11)
at V.render (vendor.js:16726:9)
at V.redraw (vendor.js:16729:31)
at vendor.js:20925:25
at Array.forEach (<anonymous>)
at B.redraw (vendor.js:20919:11)
at x.d (vendor.js:20497:25)
Code: Select all
public removeSeries() {
if (this.theChart) {
for (var i = this.theChart.series.length - 1; i > -1; i--) {
this.theChart.series[i].remove();
}
}
}
Thanks
Aisling