I\'ve made a force directed graph with d3.js plugin, and I wanna color the nodes and the labels with the different color according to group which they belong.
I\'ve
Did you ever solve this? if not a possible solution is here: http://jsfiddle.net/adeaver/F2fbu/1/
Each group/node is differently colored along with the corresponding text by adding:
.style("fill", function(d) { return color(d.group); })
to the text append and group: link.group
to the function that computes the nodes from the links