Highcharts:tooltip点击而不是悬停 [英] Highcharts: tooltip Click instead of hover
问题描述
有没有关于highcharts工具提示的设置,您可以将它设置为在点击与悬停之间进行显示?
我已经看到很多人在讨论工具提示但是现在仍然存在悬停。有没有办法禁用悬停和只使用点击?
目前在Highcharts中没有设置。
这里有一个关于这个功能的特性请求: http://highcharts.uservoice.com/forums/55896-general/suggestions/2607304-allow-the-tooltip当出现这种情况时,您可以随时添加您的投票和评论。
UPDATE:
我已经开始使用jQuery UI对话框来达到这个目的。
我禁用了Highcharts中的工具提示,并向plotOptions中的点添加了单击事件。
在这个点击函数中,我调用一个外部函数,发送它点对象,并在对话框中构建我的工具提示。
- http://jqueryui.com/dialog/
- http://api.highcharts.com/highcharts#plotOptions.series.point.events.click
您也可以使用Highslide达到此目的,并将其全部保存在家庭中。
工作例如:
Is there a setting for highcharts tooltips where you can set it to display on click versus hover?
I have seen a lot of people discussing the tooltip staying on click but then there is still the hover present. Is there a way to disable the hover and use only click?
There is not a setting for that in Highcharts currently.
There is a feature request for this functionality here: http://highcharts.uservoice.com/forums/55896-general/suggestions/2607304-allow-the-tooltip-to-appear-when-a-point-is-clicke
Feel free to add your votes and comments.
UPDATE:
I have started using the jquery UI dialog for this purpose. I disable the tooltip in Highcharts, and add a click event to the point in the plotOptions.
In that click function I call an external function, sending it the point object, and build my tooltip within the dialog.
- http://jqueryui.com/dialog/
- http://api.highcharts.com/highcharts#plotOptions.series.point.events.click
You could also use Highslide for this purpose, and keep it all in the family.
Working example:
这篇关于Highcharts:tooltip点击而不是悬停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!