score:1

Accepted answer

The chart is redrawn after each iteration, you can prevent that by setting the redraw argument in addSeries method call to false and call redraw after the loop.

for( let i = 0; i < data_list.length; i++ ) {
  this.chart.addSeries({
    name: ...,
    data: ...,
  }, false);
}

chart.redraw();

Live demo: http://jsfiddle.net/yqo8hrbn/

API Reference:

https://api.highcharts.com/class-reference/Highcharts.Chart#addSeries

https://api.highcharts.com/class-reference/Highcharts.Chart#redraw


Related Query

More Query from same tag