Thanks ChartMan,

Use chart.collapse(0, true);
I found it just close the first node.
When I double click the first node, all nodes are open.
If I want all nodes was closed at began.
I must set chart.collapse(0, true);
chart.collapse(1, true);
chart.collapse(2, true); ...... etc.
Although I can use the "foreach" or "for" in my code,
but it still not a good method.

I think there are no parameters can solve this demand in the API.


On 2月16日, 下午2時01分, ChartMan <[email protected]> wrote:
>  // Create and draw the visualization.
>   var chart = new google.visualization.OrgChart(document.getElementById(
> 'visualization'));
>   chart.draw(data, {allowHtml: true, allowCollapse: true});
>   chart.collapse(0, true);
>
> Use the collapse method.
>
> ChartMan
>

-- 
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