Here (see this jsfiddle) you can see the 2-dimensional crosshairs are snapping to the datapoint that is closest to it. How would you make the crosshairs and tooltip correspond to the current mouse position on the chart?
tooltip: {
crosshairs: [true, true]
}
jsFiddle Solution
I ended up binding my own mousemove event to get the constantly changing mouse position within the graph for the crosshairs. For the tooltip i just used:
tooltip: {
shared: true,
followPointer: true
},
This should be more than enough to get you going.
Unfortunately crosshair works only in this way, but you can prepare your own solution by mouseOver and mouseOut events and add draw line by renderer.
http://api.highcharts.com/highcharts#plotOptions.series.events.mouseOver http://api.highcharts.com/highcharts#plotOptions.series.events.mouseOut
http://api.highcharts.com/highcharts#Renderer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With