我的应用场景: 我想通过点击数据点来获取被点击的点数据和其他属性,然后通过PrimaryKey或者其他属性获取其他数据。用于显示在其他图表上。我目前遇到的问题是:LineSeries的“onMouseClick”事件返回的参数,找不到点击点等属性的数据;我尝试了两种方法,但找不到点击点的数据。
[1]:
lineSeries.onMouseClick(function(serie, event) {
let point = serie.solveNearestFromScreen({
x: event.screenX,
y: event.screenY
});
console.log(point)
})
[2]:
lineSeries.onMouseClick(function(serie, event) {
console.log('serie', serie);
console.log('event', event);
})
期待您的回复