Thank you so much for your code.This is very useful to me. But I want to do this function when click on particular image. Here I attached the image file. Is it possible sir.?
On Thursday, September 20, 2012 7:46:13 PM UTC+5:30, asgallant wrote:
>
> Here's how to do it with a "select" event listener:
>
> google.visualization.events.addListener(chart, 'select', function () {
> // get the row of the node clicked
> var selection = chart.getSelection();
> var row = selection[0].row;
> // get a list of all collapsed nodes
> var collapsed = chart.getCollapsedNodes();
> // if the node is collapsed, we want to expand it
> // if it is not collapsed, we want to collapse it
> var collapse = (collapsed.indexOf(row) == -1);
> chart.collapse(row, collapse);
> // clear the selection so the next click will work properly
> chart.setSelection();
> });
>
>
--
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/-/HJftYLDFu9YJ.
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.
<<attachment: Untitled.png>>
