Force-Directed Graph

Note: I grabbed the data from Mike Bostock’s wesite. I only used this example to embed my first d3.js graphic. The rest of the posts from now on, will be inspired by Mike, but will be product of my own work

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.