使用饼图在Google Visualization API中使用饼图切割时,是否有任何方法可以隐藏弹出窗口?感谢
答案 0 :(得分:3)
要删除工具提示,您必须这样做:
chart.draw(data, {tooltip: {trigger:'none'}});
如果您不希望图表对任何用户操作做出反应,您也可以删除所有交互性:
chart.draw(data, {enableInteractivity: false});
答案 1 :(得分:2)
我会尝试将触发器设置为'none
chart.draw(data, {trigger:'none'});
答案 2 :(得分:1)
目前无法打开/关闭工具提示。但是以下可以做到这一点:
tooltip_iframe = window.frames[document.getElementById('your chart id').firstChild.name];
tooltip_dom = tooltip_iframe.document.getElementById('chart').firstChild.nextSibling.nextSibling;
tooltip_dom.style.display = 'none';
答案 3 :(得分:0)
这个对我有用
var options = {
tooltip: {trigger:'none'}
};
chart.draw(data, options);