This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.
Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.
Hello. I am new to d3 (thank you-it's amazing!), and am using your examples to learn. I have re-created this graph, but am trying to get the names to show up as labels on the graph. i thought that the code:
node.append("title")
.text(function(d) { return d.name; });
would append the name of each row to the node, but it doesn't seem to. If this code is not to append the title then what is it's purpose? also, if this code isn't meant to add the label to each node, can you point me in the direction of some code that would do the trick?
thank you!