先绘制,后删除多余
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();
}
}
时间: 2024-10-13 03:34:24