Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法确定 Highcharts 图表的每个系列中的数据点数量?
假设您想从第一个系列中获得。
console.log(chart.series[0].data.length);
演示
使用 jQuery 并假设您已将图表定义为名为chart...
chart
$.each( chart.series, function(){ console.log(this.name + ": " + this.data.length + " data points."); } );