Here (see this jsfiddle)您可以看到二维十字光标正在捕捉到离它最近的数据点。如何使十字光标和工具提示与图表上的当前鼠标位置相对应?
tooltip: {
crosshairs: [true, true]
}发布于 2013-06-04 10:56:41
我最终绑定了我自己的mousemove事件,以获得十字光标图形中不断变化的鼠标位置。对于我刚刚使用的工具提示:
tooltip: {
shared: true,
followPointer: true
},这应该足够让你继续下去了。
发布于 2013-05-29 16:45:18
不幸的是,十字准线只能以这种方式工作,但您可以通过mouseOver和mouseOut事件准备自己的解决方案,并通过渲染器添加绘制线。
http://api.highcharts.com/highcharts#plotOptions.series.events.mouseOver http://api.highcharts.com/highcharts#plotOptions.series.events.mouseOut
发布于 2017-11-29 18:59:01
你可以试试Set axis crosshair for mouse move
$('#container').highcharts({
xAxis: {
crosshair: {
snap: false
}
},
yAxis: {
crosshair: {
snap: false
}
},
series: [{
data: [6, 4, 2,4],
name: 'First'
}, {
data: [7, 3, 2],
name: 'Second'
}, {
data: [9, 4, 8],
name: 'asdf'
}]
});https://stackoverflow.com/questions/16804678
复制相似问题