iscmd commented on issue #19654:
URL: https://github.com/apache/echarts/issues/19654#issuecomment-1968055970
想要实现的效果是,点击折线上吸附到最近的x轴上的点,并显示对应y轴和x轴的值,现有的代码实现如下,无法实现显示对应y轴的值。
代码:
tooltip: {
// 选中数据显示标签
trigger: 'axis', // 坐标轴提示
axisPointer: {
type: 'cross', // 直线指示
axis: 'x',
snap: true,
},
formatter(params) {
console.log('formatter');
},
},
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]