How to add multiple series in highcharts synchronously
- by leonlong
I tried to add multiple series in highcharts synchronously, but the response time is very slow. It took almost 3-5 seconds to display the charts. Here is part of the code.
while(chart.series.length>0){
chart.series[0].remove(true);
}
chart.addSeries(series1);
chart.addSeries(series2);
chart.addSeries(series3);
chart.addSeries(series4);
chart.addSeries(series5);
When I remain only one addSeries command, it response immediately, so I realized it may be the problem of add multiple series in highcharts synchronously.
Not so good at highcharts, so is there anyone could help me about this? Or maybe there is another way to do this, I am much appreciated.