Sankey guide

43 views
Skip to first unread message

Paolo Chiocchetti

unread,
Apr 22, 2017, 8:24:43 PM4/22/17
to Google Visualization API
Dear all,

where can I find a proper guide to Google Chart Sankey charts' syntax?

I can follow the basic example provided in the guide and reproduce it on JSFiddle (https://jsfiddle.net/pchiocchetti/b5kd96tL/), but I have no clue what all the parentheses and commands mean and how to use them to customise my chart. For example, how do I assign a specific colour to a specific node?

Thanks a lot!
Best,
Paolo

 

Daniel LaLiberte

unread,
Apr 22, 2017, 11:39:32 PM4/22/17
to Google Visualization API
Hi Paolo,

Unfortunately, we don't have a way of assigning a specific color to a specific node. A big part of the reason is that nodes are not represented by a particular row of data, but by all the rows that have the same data value.  

I think what we should do is have a mapping from value to color in the options structure, similar to what we have in other charts, but for discrete values.

--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/3a96e4c9-04ce-45f5-bce8-c1ac84b6f29b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Paolo Chiocchetti

unread,
Apr 23, 2017, 7:47:57 PM4/23/17
to Google Visualization API
Thanks!


On Sunday, 23 April 2017 05:39:32 UTC+2, Daniel LaLiberte wrote:
Hi Paolo,

Unfortunately, we don't have a way of assigning a specific color to a specific node. A big part of the reason is that nodes are not represented by a particular row of data, but by all the rows that have the same data value.  

I think what we should do is have a mapping from value to color in the options structure, similar to what we have in other charts, but for discrete values.
On Sat, Apr 22, 2017 at 8:24 PM, Paolo Chiocchetti <p.chio...@gmail.com> wrote:
Dear all,

where can I find a proper guide to Google Chart Sankey charts' syntax?

I can follow the basic example provided in the guide and reproduce it on JSFiddle (https://jsfiddle.net/pchiocchetti/b5kd96tL/), but I have no clue what all the parentheses and commands mean and how to use them to customise my chart. For example, how do I assign a specific colour to a specific node?

Thanks a lot!
Best,
Paolo

 

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



--
Reply all
Reply to author
Forward
0 new messages