如何以编程方式在highchart中隐藏工具提示? [英] How to programatically hide a tooltip in highcharts?

查看:116
本文介绍了如何以编程方式在highchart中隐藏工具提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在移动应用程序中实现highcharts,一切正常,但有一个问题,在将方向从potrait改为风景时,所选点显示的工具提示不会隐藏在方向更改中。



请告诉我如何在highcharts中以编程方式隐藏工具提示。



我尝试了下面的代码:



$('#tankActualUsagechart')。highcharts()。tooltip.hide();



但这并不隐藏我正在显示的标记...



如果有一种方法可以隐藏标记,那我也很好。 。

请帮我解决这个问题

解决方案

看看 http://jsfiddle.net/St84H/



您可以隐藏工具提示

 工具提示:{
启用: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆