效果图如下:

核心代码如下:
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.length - 1])
}
})
chart.tooltip.refresh(points)
},
},
},
tooltip: {
shared: true
}
}
博客展示了效果图,并给出核心代码的参考地址https://jsfiddle.net/BlackLabel/tkdrohe7/ 。
2643

被折叠的 条评论
为什么被折叠?



