Using Google Visualization API, how to turn off tooltips for a single column?

*爱你&永不变心* 提交于 2019-12-25 02:29:51

问题


According to this reference http://code.google.com/apis/chart/interactive/docs/gallery/linechart.html , tooltip.trigger = 'none' turns off tooltips on a chart.

How do you use this? data.tooltips.trigger = 'none'?

And, how do you turn off tooltips for a single column?


回答1:


When you draw the chart pass it as a param:

chart.draw(data, {trigger:'none'});



回答2:


Disabling tooltips for a single columns isn't possible. But you can get a similar effect by adding enableInteractivity: false to the series.

See this answer for an example.



来源:https://stackoverflow.com/questions/9271449/using-google-visualization-api-how-to-turn-off-tooltips-for-a-single-column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!