Hi ,
I could show default all rows collapse nodes using above code.But the
requirement is now to collpase upto 3 levels from bottom of hierarchy. in
other words show hierarchy default as expanded to 3 levels only.I have
tried above code by giving hard coding valued for row index,but it
Four year later...
This has saved me about three hours of works that otherwise would have
frustrated me to no end.
Thank you so much Viz Kid. All the best,
Tim
On Thursday, February 18, 2010 3:00:19 AM UTC-5, Viz Kid wrote:
Have a look at the playground at the org chart example:
Have you added the additional option flag {allowCollapse: true}?
This exact code in the playground worked for me on every browser I tried
(Safari, Chrome and Firefox - all on mac).
On Fri, Feb 19, 2010 at 5:29 PM, gwiens glenn.wi...@gmail.com wrote:
Thanks for the example. However, I could not
I missed declaring the putting the var chart = before new
google.visualization.OrgChart... bit. Thanks -- it did indeed work.
On Feb 19, 10:57 am, Viz Kid viz...@google.com wrote:
Have you added the additional option flag {allowCollapse: true}?
This exact code in the playground worked for me
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'));