How to add multiple series in highcharts synchronously
Posted
by
leonlong
on Stack Overflow
See other posts from Stack Overflow
or by leonlong
Published on 2013-10-29T21:51:00Z
Indexed on
2013/10/29
21:53 UTC
Read the original article
Hit count: 274
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.
© Stack Overflow or respective owner