Hi Sergey,

Could you share the link to the instructions that say how to give each node 
a specific color?

El lunes, 19 de octubre de 2015, 9:46:29 (UTC-4), Sergey escribió:
>
> 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 <[email protected] <javascript:>> 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 [email protected] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/c64c3796-dfad-4c21-af74-9d41ad96076f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/c1aae680-826d-4e55-899d-52022ac3cbae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to