我有一张图表。图表选项中没有 mouseOver 事件,但我需要在移动光标时获取鼠标坐标。例如,我想显示 xAxis 和 yAxis 上的坐标。可能吗?
最佳答案
您可以在包含 highcharts 的 div 上捕获 mousevent。
$('#highcharts-0').mouseover(function(e){
$('#report').html(e.clientX + ' ' + e.clientY);
});
关于javascript - Highcharts 中的鼠标悬停,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18439863/