--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c64c3796-dfad-4c21-af74-9d41ad96076f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Bill,Currently the 'category' colorMode will color all the nodes the same color. In the future, we'll make it so that you can assign each node a category, and it will be colored distinctly. There's no way to automatically have all the 'From' nodes get a color and all the 'To' nodes to get another color. This is primarily because Sankey diagrams can get arbitrarily complex, and we can't provide a coloring mode that only works for this one case. I think your current best bet is indeed to assign a color to each node.There aren't any options for node sorting currently, but I imagine that organizing your data in different ways will produce different layouts, so I would try sorting your data to see if you can get it the way you want.
On Sat, Oct 17, 2015 at 9:24 PM <bi...@signal2n.com> wrote:
I've got a simple "A to B" Sankey diagram, with 50+ rows of data. So, rather than assigning a different color to each node (way too many), I would like to display one color for all of the ("From") source nodes and a second color for all of the ("To") target nodes. I feel like there's a way to do it with the colorMode, but I don't know what 'category' means or how to control it.--var options = {sankey: {node: {colorMode: 'category', colors: ['cd0000']}I would also like to be able to sort/order the nodes in descending size. I don't think there's any way to do it in the code, but maybe some way to organize the data?
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.