Thank you very much.

On Thursday, February 18, 2010 at 1:30:19 PM UTC+5:30, Viz Kid wrote:
>
>
> Have a look at the playground at the org chart example: 
> http://code.google.com/apis/ajax/playground/#org_chart
>
> Modify the last line which draws the chart with:
>
>   // Create and draw the visualization.
>   var chart = new google.visualization.OrgChart(document.getElementById(
> 'visualization'));
>   chart.draw(data, {allowHtml: true, allowCollapse: true});
>   
>   for (var i = 0; i < data.getNumberOfRows(); i++) {
>     chart.collapse(i, true);
>   }
>
> Hope this helps,
>   Viz Kid
>
> On Wed, Feb 17, 2010 at 10:20 PM, gwiens <[email protected] <javascript:>
> > wrote:
>
>> Could I get an example of how to use the "collapse" function and where
>> to place it in the sequence of creating an OrgChart?
>>
>> On Feb 15, 6:39 am, Viz Kid <[email protected]> wrote:
>> > Hi.
>> >
>> > I think that indeed the only way to make all the nodes collapsed is to 
>> run
>> > collapse on all the rows.
>> >
>> > Best,
>> >   Viz Kid
>> >
>> >
>> >
>> > On Sat, Feb 13, 2010 at 12:59 AM, gwiens <[email protected]> wrote:
>> > > I looked through the documentation and scanned this discussion group
>> > > looking for syntax help, but I have not found it.
>> >
>> > > My experiments with this include calling the method
>> > > collapse('ndx','collapsed') (where ndx is an integer). However, none
>> > > of my permutations has made any difference in the tree -- all nodes
>> > > still are created fully expanded.
>> >
>> > > Can I get an example of node creation which will produce a collapsed
>> > > node?
>> >
>> > > Or do I need to create the tree, then visit each node while calling
>> > > the collapse method on each?
>> >
>> > > Thanks
>> >
>> > > --
>> > > 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] <javascript:>.
>> > > To unsubscribe from this group, send email to
>> > > [email protected] 
>> > > <javascript:><google-visualization- 
>> api%[email protected] <javascript:>>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-visualization-api?hl=en.
>>
>> --
>> 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] 
>> <javascript:>.
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-visualization-api?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/203fe9f9-eceb-4dfc-aa17-c0b4a6dbbd11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to