I am experimenting with the d3 code for the radial tree found here: https://bl.ocks.org/mbostock/4063550
I'd like to make it so that the links leading from (and the corresponding nodes they connect to) of the first 10 child nodes are different colors. For example, all links and nodes coming from "animate" would be red, "data" orange, "display" yellow, and so on.
I'm brand new to this, so I apologize if I didn't explain this very well.
What I tried so far was adding code under this section:
node.append("circle")
.attr("r", 2.5);
I sort of just guessed how to designate a color to a specific node, and needless to say it didn't work.
Thanks for your help!