如何以编程方式在highchart中隐藏工具提示? [英] How to programatically hide a tooltip in highcharts?
问题描述
我试图在移动应用程序中实现highcharts,一切正常,但有一个问题,在将方向从potrait改为风景时,所选点显示的工具提示不会隐藏在方向更改中。
请告诉我如何在highcharts中以编程方式隐藏工具提示。
我尝试了下面的代码:
$('#tankActualUsagechart')。highcharts()。tooltip.hide();
但这并不隐藏我正在显示的标记...
如果有一种方法可以隐藏标记,那我也很好。 。
请帮我解决这个问题
解决方案您可以隐藏工具提示
工具提示:{
启用:false
}
I am trying to implement highcharts in a mobile application, everything works fine but there is one issue in which on changing orientation from potrait to landscape the tooltip shown for any point selected does not hide on orientation change.
Please suggest me how to hide a tooltip programatically in highcharts ..
I tried the below code:
$('#tankActualUsagechart').highcharts().tooltip.hide();
but this does not hide the marker which i am displaying ...
If there is a way to hide the marker i am fine with that also ..
Please help me on this issue
Please have a look at http://jsfiddle.net/St84H/
You can hide tool tip by
tooltip: {
enabled: false
}
这篇关于如何以编程方式在highchart中隐藏工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!