如何在Google地理图表中隐藏工具提示标题(并在工具提示中显示其他信息) [英] How to hide tooltip title in google geocharts (and show other info in the tooltip)

查看:51
本文介绍了如何在Google地理图表中隐藏工具提示标题(并在工具提示中显示其他信息)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:如果您在Google地理图表中启用了工具提示,则无法更改工具提示标题,这是传递给Google图表绘制方法的第一列.

Problem: if you enable the tooltips in google geocharts you cannot change the tooltip title, it's the first column you pass to the google chart draw method.

推荐答案

您可以将工具提示的showTitle选项设置为false

Instead of the CSS above to hide the title, you can set the showTitle option for the tooltip to false

tooltip: {
        isHtml: true,
        showTitle: false
    }

然后,您可以在工具提示中使用HTML标记以完全按照所需的方式显示工具提示.

Then you can use HTML markup in your tooltip to display the tooltip exactly the way you want.

这篇关于如何在Google地理图表中隐藏工具提示标题(并在工具提示中显示其他信息)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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