Re: [visualization-api] attach event handler to Column Chart in google charts

2014-04-21 Thread Andrew Gallant
If you are only interested in the x-axis labels, here's how you can modify that click handler: google.visualization.events.addListener(chart, 'click', function(e) { var match = e.targetID.match(/hAxis#\d#label#(\d)/); if (match != null && match.length) { var rowIndex = parseInt(ma

Re: [visualization-api] attach event handler to Column Chart in google charts

2014-04-21 Thread Prakash
Thanks a lot Sergey. It doesn't seemed to mentioned in document. On Monday, April 21, 2014 7:17:20 PM UTC+5:30, Sergey wrote: > > This is already possible, but you have to register for the click event. > Here's an example: http://jsfiddle.net/vH3FP/ > > - Sergey > > > On Mon, Apr 21, 2014 at 4:4

Re: [visualization-api] attach event handler to Column Chart in google charts

2014-04-21 Thread 'Sergey Grabkovsky ' via Google Visualization API
This is already possible, but you have to register for the click event. Here's an example: http://jsfiddle.net/vH3FP/ - Sergey On Mon, Apr 21, 2014 at 4:45 AM, Prakash wrote: > How to add Event Listeners to google charts(Column Chart) column > name(label). For example, the lables such as 2004,

[visualization-api] attach event handler to Column Chart in google charts

2014-04-21 Thread Prakash
How to add Event Listeners to google charts(Column Chart) column name(label). For example, the lables such as 2004,2005,2006, 2007 should throw events. When the user clicks on column name(label), event(select) should be triggered. There is a provision to add event listener to the visualisatio