So I'm trying my hand at explicit Word Trees to make an org chart, and I'm 
wanting to use IDs which are already in my database.  They don't begin with 
0, and several numbers are missing since people have left.

The following *works by default*:

nodeListData.addRow([0, 'Boss', -1, 1, 'black']);
nodeListData.addRow([1, 'Child 1', 0, 1, 'black']);
nodeListData.addRow([2, 'Child 2', 0, 1, 'black']);

This *does not work*: (some kind of "Tu" error)

nodeListData.addRow([500, 'Boss', -1, 1, 'black']);
nodeListData.addRow([550, 'Child 1', 500, 1, 'black']);
nodeListData.addRow([600, 'Child 2', 500, 1, 'black']);

This *does appear to work*:

nodeListData.addRow([0, 'Unknown', -1, 1, 'black']);
nodeListData.addRow([500, 'Boss', 0, 1, 'black']);
nodeListData.addRow([550, 'Child 1', 500, 1, 'black']);
nodeListData.addRow([600, 'Child 2', 500, 1, 'black']);

In the last example, I basically added a "static boss" that even the 
highest ranking boss would belong to, this way we always have a zero (0) 
ID.  It seems that as long as I have a 0 ID, I can skip any other number. 
 Am I safe to continue using it like this or will I run into troubles later 
on?

Thanks! - Josh

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to