开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜