Highcharts 动态删除series

 

先绘制,后删除多余

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();
  }

}

你可能感兴趣的:(Highcharts)