使高图显示上一点的工具提示
问题描述:
Highcharts中是否有一种方法可以使工具提示显示的位置不是鼠标最接近的位置,而是始终显示在左边的位置?
例如,在下面的图片中,我希望如果鼠标悬停在红色区域上,将显示的工具提示就是五月以上那个点的工具提示:
Is there a way in Highcharts to cause the tooltip to be displayed not by the closest point to the mouse but always by the point to the left?
e.g in the picture below, I want that if the mouse is hovering the red area the tooltip that would be displayed is the tooltip of the point above May:
谢谢:)
答
您可以使用 tooltip定位器,您可以定义自己的定位功能.
You can use tooltip Positioner which allows you to define your own positioning function.