-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify colour for edges #9
Comments
The colour of the edges is currently inherited from the "source" node. This is less than optimal, it would be nice to be able to specify the colour of the edges individually (e.g. read it from the edge colour properties of an igraph object). |
There doesn't appear to be an issue specific to hex colour values. The colour interpretation is done using d3.color which takes hex or CSS named colours. require(igraph)
require(edgebundleR)
ws_graph <- watts.strogatz.game(1, 50, 4, 0.05)
V(ws_graph)$color = sample(c("#ffeeaa","green","steelblue"),50,replace = TRUE)
edgebundle(ws_graph,tension = 0.1,fontsize = 18,padding=40) I'll need to work out how to best address the edge colouring issue. |
Perhaps we should be more ambitious and migrate to using the d3r package so that we can use the |
Hi, |
Hi, I have to admit I haven't made any progress on this issue and am unlikely to in the near future. Happy to take pull requests though! |
From an email:
The text was updated successfully, but these errors were encountered: