Sankey - Designating specific node colors #1828
Replies: 6 comments 2 replies
-
In case anyone else stumbles upon this I was able to get it to work but adding the |
Beta Was this translation helpful? Give feedback.
-
Hi, I am a physician resident and need a sankey diagram four one of our project. Is there anyone who can provide this sankey diagram professionally? I'll be very happy to contact them separately and will greatly appreciate if you contact me. Thank you! Cansu |
Beta Was this translation helpful? Give feedback.
-
i checked their types and found out that there is no color field for data (but their docs show there is one). no wonder why it was not working for node color |
Beta Was this translation helpful? Give feedback.
-
Hey there, Any updates on this issue ? I would also really like to set my own node specific colors. |
Beta Was this translation helpful? Give feedback.
-
The property is |
Beta Was this translation helpful? Give feedback.
-
This worked for me- Where nodeColors is defined for each node in data json. Yes, it accepts a function. This should have been mentioned in the docs, but I think it is not. |
Beta Was this translation helpful? Give feedback.
-
Hi. First of all thanks for the amazing package. I had a question about specifying colors for specific nodes when defining the node data of a Sankey diagram. I noticed in the example from https://nivo.rocks/sankey/ that the data itself has a color field but then it seems to be overwritten by the themed color. Is there a way to turn off the themed color and instead just use that specified color on the node itself?
The sankey diagram I am trying to create essentially always has 6 columns of nodes and I'm trying to have all nodes in a single column have the same color but I'm not sure how to do that with theme. An extension of this would be having static flow colors. So for example having the connections be a static grey while assigning the nodes colors when the data is defined.
Sorry if I missed the solution in the docs and thank you in advanced for any assistance.
Beta Was this translation helpful? Give feedback.
All reactions