Saneky Nodes Color

24 views
Skip to first unread message

Omer Paran

unread,
Nov 15, 2016, 10:39:11 AM11/15/16
to Google Visualization API
I need to set by myself the colors for each node . 

I need to group nodes by colors, in order to show flow of information from A to B To C , the nodes of A,B,C need to be all blue for example

The way it is handled right now is that I define an array:

var nodeColors = ['black','red','purple','orange','green'];

pass it to :

sankey: {
node: {
colors: nodeColors,
}
};

and colors are chosen with no regard to the data flow 

Is there a way to define a color per node ? also per link ?

thank you

Omer.
Reply all
Reply to author
Forward
0 new messages