Overriding onmouseover events in Google Chart API's
I am using the Google PieChart visualization and by default, when you mouse over the various slices of the pie chart, there is a tooltip that displays information about the data slice. I would like to disable this tooltip from 开发者_Go百科displaying altogether.
You can easily add a listener to the onmouseover event, but I'd like to override that event altogether. Has anyone done this before?
Thanks
According to the docs, you can stop the tooltip from displaying by setting the trigger in your options:
var options = {
tooltip: {
trigger: 'none'
}
};
You can see it in action on jsfiddle. Just a note, the only other valid option is hover
which is set by default.
精彩评论