Background color of a node in Organization Chart

708 views
Skip to first unread message

Farrukh

unread,
Jun 28, 2011, 4:06:44 PM6/28/11
to Google Visualization API
Hi all,

I'm trying to change background color of a specific node in Google
Organization Chart visualization. A simple and obvious requirement so
expecting a quick answer. Thanks :)

FARRUKH

asgallant

unread,
Jun 29, 2011, 10:07:41 AM6/29/11
to google-visua...@googlegroups.com
use the #setRowProperty() method to set the background, and set the 'allowHtml' option to true

For example:

data.setRowProperty(3, 'style', 'background: #FF0000');

sets the background of row 3 to red.

Mauricio Gerardo Ramirez Mendoza

unread,
Nov 25, 2015, 12:37:54 PM11/25/15
to Google Visualization API
Hey there, what if i want to set bg-color to all my nodes i cant make it by css 
Reply all
Reply to author
Forward
0 new messages