bughi08
Posts: 1
Joined: Wed Sep 28, 2022 9:42 am

Tooltip displayed for the end interval point

Hello,

I'm trying to figure out if there is a way, for a timeline chart, to display the tooltip on the end point of the interval hovered instead of the closest point to the current cursor position. For example, on this graph https://ibb.co/f9vGC8Y, even if the cursor is placed closer to the Jun point I would like to display the Jul tooltip.

Thanks!
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Tooltip displayed for the end interval point

Hi bughi08!
Welcome to our forum and thanks for contacting us with your question!

Unfortunately, it is not possible, but you can try to replace the line chart with a scatter series and set lineWidth as 2. Also, set stickyTracking to false. By using these options, a tooltip will be shown if you hover directly on a point, not in the middle distance between two points.

Demo: https://jsfiddle.net/BlackLabel/2b7c5ema/
https://api.highcharts.com/highcharts/s ... kyTracking

Let me know if that fits your requirement.
Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”