先绘制,后删除多余
var chart = new Highcharts.Chart(options);
if (chart.series.length > result.dataList0.length) {
for (var i = result.dataList0.length; i < options.series.length; i++) {
chart.series[chart.series.length - 1].remove();
}
}
先绘制,后删除多余
var chart = new Highcharts.Chart(options);
if (chart.series.length > result.dataList0.length) {
for (var i = result.dataList0.length; i < options.series.length; i++) {
chart.series[chart.series.length - 1].remove();
}
}
转载于:https://www.cnblogs.com/lb12081116/p/4308032.html