【问题标题】:Using Google Visualization API, how to turn off tooltips for a single column?使用 Google Visualization API,如何关闭单列的工具提示?
【发布时间】:2012-02-14 03:49:52
【问题描述】:

根据此参考 http://code.google.com/apis/chart/interactive/docs/gallery/linechart.htmltooltip.trigger = 'none' 关闭图表上的工具提示。

你如何使用它? data.tooltips.trigger = 'none'?

还有,如何关闭单列的工具提示?

【问题讨论】:

    标签: charts google-visualization


    【解决方案1】:

    当您绘制图表时,将其作为参数传递:

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

    【讨论】:

      【解决方案2】:

      无法为单个列禁用工具提示。 但是你可以通过在系列中添加enableInteractivity: false 来获得类似的效果。

      有关示例,请参阅 this answer

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多