About Google Organization Chart API

55 views
Skip to first unread message

Ketan Patil

unread,
Jul 12, 2017, 3:26:13 AM7/12/17
to Google Visualization API
Can i Add Different Colors to Different Levels ...For Eg. Parent Level has Different Color and Child Level has Different Color????

Should it Will Be Possible in Google Organization Chart???

If Yes then Tell Me How...

And Thanks In Advance

Retro Gamer

unread,
Jul 17, 2017, 9:58:34 AM7/17/17
to Google Visualization API
I've just had a quick look at this and the only way i can think of changing the color is like this

data.setRowProperty(0, 'style', 'background-color:yellow;background-image:none');

or to change it when the node has been selected

data.setRowProperty(1, 'selectedStyle', 'background-color:yellow;background-image:none');

(the number 0 and 1 in each of the above example relate to the row number, 0 being the first row)

hope this helps

Ketan Patil

unread,
Jul 18, 2017, 2:01:55 AM7/18/17
to Google Visualization API
Thanks for replay but I have tried it but it affects on a single nodes....
and i have to give different colors to different levels...
Reply all
Reply to author
Forward
0 new messages