In the select handler, call the #getSelection method of your chart object 
to get the selection.  The #getSelection method returns an array of objects 
with row and/or column properties (depending on the visualization and what 
is selected - org charts return only rows, as I recall) which contain 
indices referencing the DataTable used to build the chart.  You can then 
use these indices to pull data out of the DataTable, like this: 
http://jsfiddle.net/asgallant/3baRY/ 

On Friday, August 24, 2012 5:28:41 AM UTC-4, Johnny Morris wrote:
>
> I've created an org chart similar to:
> http://code.google.com/apis/ajax/playground/?type=visualization#org_chart
>
> Instead of using the names for the links I'm using an ID from a database 
> field. When Clicking on the icon I can make a alert box appear but I'm 
> having problems extracting this ID back out of JavaScript and into my own 
> JavaScript statement so.
>
>
> Thanks,
>
> Johnny
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/ScKgZkVez5AJ.
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