You are almost there.
When you called after th event was triggered, you should call to
chart.getSelection() (please see in the docs for more details).
This will give you the indexes of the row and column, of the cell that was
selected in teh underlying table, so from there, you have to call
data.getValue() with these indexes to get the actual data.

You may want to have a look at teh playground example at
http://code.google.com/apis/ajax/playground/?type=visualization#select_event

Regards,
VizGuy


On Fri, May 29, 2009 at 9:30 AM, HeavenCore <[email protected]> wrote:

>
> Hello there, i have a Stacked Column Chart with quite a lot of data:
>
> http://www.heavencore.co.uk/viewpage.php?page_id=21
> (give it a few seconds to load)
>
>
> I need to basically add an event on column click that will return
> values of the column (eg 2009/22), series (eg: Broadband) and value
> (eg: 3) (basically exactly what the native tooltiup does)
>
> I have managed to add a listener to alert() the '2009/22' using:
>
> google.visualization.events.addListener(chart, 'select', function() {
>    var row = chart.getSelection()[0].row;
> alert('You selected ' + data.getValue(row, 0));
> });
>
> However, this is not what i want, i understnad i have to deal with
> rows and columns here, but i am struggling to get the syntax right.
>
> Please help!
>
> Many Thanks!
>
> Jordon
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to