本文介绍了使高图显示上一点的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

这篇关于使高图显示上一点的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 05:59