Hello,
When I try to create a Sankey diagram, I get different colors for the
nodes. I want the color to be the same for all, but the color node option
doesn't seem to work? The example below still ends up having different
colors. How can I change the color to be the same for all nodes? Thanks!
-Angela
dat <- data.frame(From=c(rep("A",3), rep("B", 3)),
To=c(rep(c("X", "Y", "Z"),2)),
Weight=c(5,7,6,2,9,4))
sk1 <- gvisSankey(dat, from="From", to="To", weight="Weight")
plot(sk1)
sk2 <- gvisSankey(dat, from="From", to="To", weight="Weight",
options=list(sankey="{link: {color: { fill: '#d799ae' } },
node: { color: { fill: '#a61d4c' },
label: { color: '#871b47' } }}"))
plot(sk2)
But the node are still a different color.
--
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 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/7c57dabb-4f16-4e99-932d-2492cd2d174a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.