You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Dear all,
I would like to do some actions when users click on a chart. The
best way would be to have a click event emitted by the chart with the
corresponding listener. But I was unable to find any click event. Am I
right?
Do you know any workaround or should I submit a feature request?
Thanks for helping,
toto
asgallant
unread,
Sep 14, 2011, 12:20:39 PM9/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
/* hooks the select event of the chart * assumes: * chart is the chart object */ google.visualization.events.addListener(chart, 'select', function() { alert('select event fired'); });
You can call the #getSelection method of the chart object to get the row and/or column of the DataTable entry representing the chart element selected.