Show a tooltip when hover on the legend in a Pie Chart

574 views
Skip to first unread message

Ace McCloud

unread,
Jun 12, 2012, 2:47:10 AM6/12/12
to Google Visualization API
Is there a method to show a tooltip when one hovers the mouse on the
legend in a PieChart? If yes, how can this be done?

If no, then is there a way to extend, modify PieChart to make this
possible? Is the source code open?

asgallant

unread,
Jun 12, 2012, 11:11:54 AM6/12/12
to google-visua...@googlegroups.com
As far as I know, there isn't any way to trigger the built-in tooltip on mouseover of the legend.  However, you can register event handlers for the 'mouseover' and 'mouseout' events thrown by the pie chart, which pass row and column indices for the data point in the dataTable which you can use to build your own tooltips.  The mouse events are thrown by both the pie slices and the legend entries.
Reply all
Reply to author
Forward
0 new messages