Hi Josh, there are no promises in life, but you're safe.

("static boss" is a great concept. Very Big Brotherish.)

And just FYI, we already have org charts:
https://developers.google.com/chart/interactive/docs/gallery/orgchart

Jon

On Wed, Oct 15, 2014 at 6:13 PM, Josh Beagley <joshua.beag...@gmail.com>
wrote:

> 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 google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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