从 Google 可视化饼图(核心图表)中删除悬停工具提示
如何从 Google 可视化饼图(核心图表)中删除悬停工具提示?需要使其跨浏览器工作,例如 IE、FF、Chrome、Safari、Opera
编辑:我也需要切片可点击。enableInteractivity : false
删除悬停,但不会引发“选择”或其他基于交互的事件。
How to remove hover tooltip from Google Visualization pie chart (core chart)? Need to make it work cross-browser, eg, IE, FF, Chrome, Safari, Opera
Edit: I need the slices to be be clickable too.enableInteractivity : false
removes the hovers but doens't throw 'select' or other interaction-based events.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
也许您需要将其添加到图表的选项中,
这样您就可以将enableInteractivity 设置为true。
Maybe you need to add this to your chart's options
In this way you can leave enableInteractivity set to true.
使用 enableInteractivity = False 选项。它将禁用交互和悬停。
Use the enableInteractivity = False option. It will disable interaction and hover.
在选项部分设置工具提示:{ isHtml: true }。
在CSS文件中
set tooltip: { isHtml: true } in option section.
in css file
这会删除悬停事件,但保留单击事件:
This remove hover event but maintains the click event: