
highcharts
曹天骄
这个作者很懒,什么都没留下…
展开
-
highcharts默认选中最后一个点数据
效果图如下:核心代码如下:chart: { type: 'line', events: { load: function () { let chart = this const points = [] Highcharts.each(chart.series, function (s) { if (s.visible) { points.push(s.points[s.points.le原创 2021-01-11 13:53:36 · 763 阅读 · 0 评论 -
Highchart series一次只显示一条
核心代码如下:plotOptions: { series: { events: { show: function () { const chart = this.chart const series = chart.series let i = series.length let otherSeries while (i--) { otherSeries = series[i];原创 2021-01-11 13:19:59 · 313 阅读 · 0 评论