How to select certain part of a chart and then add event listener to it.

12 views
Skip to first unread message

Miro Hristov

unread,
Dec 28, 2016, 1:26:40 PM12/28/16
to Google Visualization API

Hallo, everyone :)

Sorry if my question sounds a little bit stupid, but I can't figure out how can I add an event listener to a certain part (piece) of a PieChart?

For example someone hovers over Mushooms and another chart about the Mushrooms is shown.

How can I "EXTRACT" this musrooms piece from the variable chart?

 var chart = new google.visualization.PieChart(document.getElementById('chart_div'));

Thank you in advance. I appretiate each answer and the time devoted.
Reply all
Reply to author
Forward
0 new messages