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
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
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,
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