Thanks for the reply VG. I have added the selectHandler as suggested (view source on the following to see how i have done it): http://www.heavencore.co.uk/test.htm
However, its still not working (no alert() is being fired), not even giving a message of 'nothing' so i can only assume there is an error somewhere being caught by the API? Can you see any mistakes in my source etc? Thanks again for any help m8, this is doing my nut in! Regards Jordon On May 30, 6:38 pm, VizGuy <[email protected]> wrote: > 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 > athttp://code.google.com/apis/ajax/playground/?type=visualization#selec... > > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
