Fixing and sorting Sankey Diagram nodes

3,262 views
Skip to first unread message

Thisisnotmyrealname

unread,
Jul 14, 2015, 1:51:16 AM7/14/15
to google-visua...@googlegroups.com
Hi

I am wondering if anyone can tell me whether or not the nodes of a Sankey Diagram can be fixed and sorted by their name? I am using the code given by Google Charts in JSFiddle. I am also wondering if two nodes can have the same label. I am looking at school performance bands, and the bands are named the same across years. 

Currently, my nodes are numbered in the form of [Year #].[Band #] to get around the naming issue I have come up with (not being able to name any two nodes the same). I would like to fix the nodes in descending order by year. 

Let me know if you require greater clarification. 

Kind regards
Thisisnotmyrealname

HighlyKiwi

unread,
Mar 11, 2016, 11:46:05 AM3/11/16
to Google Visualization API
Hi TISMRN,

I recently had the same problem. You can set the number of iterations drawn to 0, and this causes the chart to be drawn based on the order that you input the data. It might be too late to help you now, but I want it to be available when others find this thread.

Example:

var options = {
      height: 400,
      width: 400,

      sankey: {
iterations: 0,
          }

D.Priya

unread,
Jun 28, 2017, 7:00:09 AM6/28/17
to Google Visualization API
Hi,

    Is there any way to change the position(x and y axis) of the node in google sankey diagram? and diagram is not plotting properly if we have so much of data.

Bowen Hu

unread,
Jul 2, 2019, 2:29:37 PM7/2/19
to Google Visualization API
Hi, 
Do you know how to change position now? Could you tell me how to do that?
Reply all
Reply to author
Forward
0 new messages