nishikantparmariam3
Posts: 6
Joined: Thu Sep 12, 2024 11:21 am

Render custom tooltip during selection

Hi,
Does Highcharts offer a way to display a custom tooltip instead of usual tooltip for the points when the mouse is down for selection?

I would like to calculate the tooltip value and update it based on current min and max x-values as the cursor moves.


Similar to Google stock demo:
https://pasteboard.co/SZp8RNfc4nR6.gif

Thanks!
andrzej.b
Site Moderator
Posts: 307
Joined: Mon Jul 15, 2024 12:34 pm

Re: Render custom tooltip during selection

Hi,

Thanks for reaching out with your issue.

Yes, it is possible to customise the tooltip display for such a dynamic use case, as you can capture mouse events and add custom logic for the display. Please see a sample demo with one possible implementation: https://jsfiddle.net/BlackLabel/4hzkr7vg/
Adjust it to your use case.

Feel free to reach out if you have any further questions.

Kind regards,
Andrzej
Highcharts Developer

Return to “Highcharts Stock”