I have another question actually,
I noticed the page for org chart mentions a section for events, is
there an easier way to use them than using this method of embedding it
in the datatable? [{v:'Alice',f:'<div onmouseover = "showMap()";>Alice
</div>'}, 'Jim', '', 'testing'], // row 2
Is the proper way of using the events for this API?
A side question, if I wanted to pass the element ID that the event is
called from using DOM, how would I go about doing that? do I just use
document.thisid or something similar? I want the event to reference
where it was called from.
Thanks,
Chris
On May 18, 12:08 pm, asgallant <[email protected]> wrote:
> If you want to manipulate the chart using events outside the chart, I
> believe the only way to access it is to declare the chart as a global:
>
> var chart = new
> google.visualization.OrgChart(document.getElementById('chart_div'));
> function drawChart() {
>
> ...
>
> }
>
> then reference it in your update function:
>
> function update () {
>
> chart.setSelection();
>
>
>
>
>
>
>
> }
--
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.