I am currently facing an issue with my Highcharts instance that is displayed within a scrollable container. In addition, I have set the tooltip.outside option to true
so that the tooltip always appears on top even if it exceeds the chart svg.
The problem arises when scrolling, as the tooltip moves along with the scroll which causes it to render in different positions when hovering over the series.
Is there a solution to this issue? It seems that setting tooltip.outside
to false
resolves the problem, suggesting that the calculations for tooltip positioning are affected by the scrolling when set to true
.
To summarize, there are two main issues:
- The tooltip follows the scrolling movement
- Upon re-hovering, the tooltip position on the series becomes incorrect
You can view a gif demonstrating the issue here: https://i.sstatic.net/2WeMB.jpg Check out an example here: https://jsfiddle.net/tcqeo415/2/
If you disable the CSS code in the provided example, you will see the correct behavior of the tooltip