Harshad_919
Posts: 27
Joined: Fri Jun 19, 2020 6:53 am

tooltip scrollbar not resetting to top

Hello,

I am trying to show long data inside the tooltip with a vertical scroll. But when I scroll down into the tooltip of one data point and after that, I hovered on another data point then the tooltip scrollbar is not resetting to top. So I want to reset the tooltip scrollbar at top when user opens tooltip of other data points.
please refer below example
https://jsfiddle.net/vwf790mt/
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: tooltip scrollbar not resetting to top

Hi Harshad_919,

Thanks for contacting us with your question.

Creating a tooltip again each time you hover a point should solve the problem. To do that you can use mouseOver event combined with update() method, which destroys and creates tooltip again under the hood.
Demo: https://jsfiddle.net/BlackLabel/2k80xgsy/
API reference: https://api.highcharts.com/highcharts/p ... .mouseOver,
https://api.highcharts.com/class-refere ... tip#update

Let me know if that was what you were looking for!
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”