Real changes in the data itself require a new all to draw(), with the new data. Regards, VizGuy
On Tue, Apr 14, 2009 at 12:34 AM, Саша Стаменковић <[email protected]>wrote: > Thanks for the reply, I figured out the 2nd thing, but for the first, I can > collapse children, but, what happends when I have to get new nodes (through > ajax for e.g.) and add them dinamically to the chart, how do I do that? > > Regards, > umpirsky. > > > On Mon, Apr 13, 2009 at 8:53 PM, VizGuy <[email protected]> wrote: > >> 1. There is a configuration option to the org chart, called allowCollapse. >> Using this option, when the user double clicks on a node, all of the >> children of this node will collapse, and a small tail from the original node >> will mark that there are collapsed children. Another double click will >> expand the children again. >> There is no need to reload the data or to refresh the chart. >> >> 2. When a node is selected, you indeed get only the row and column >> indexes. But - these should be used as parameters to data.getValue(row, >> col), which will return the actual data. >> >> Hope this helps... >> >> >> Regards, >> VizGuy >> >> >> On Mon, Apr 13, 2009 at 9:03 AM, umpirsky <[email protected]> wrote: >> >>> >>> I have organization chart that is drawn once, and then, when user >>> clicks on some node, his children should appear. Do I need to redraw >>> wntire chart from the root or there is some way to just add new >>> children and redraw only that new part? And another question is, when >>> I get selection of the chart, I get only row and column number, how >>> can I get exact node with all data? Is there detailed documentation >>> somewere? >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
