Skip to main content
100%

Force-Directed Graph with Literal Data

✓ Published0🌍 Public
Aalex-rind
Last edited Jan 2, 2019
Created on Dec 14, 2018

This interactive force-directed graph shows character co-occurrence in Victor Hugo’s *Les Misérables*, with nodes representing characters and links representing their appearances together. The layout uses `d3.forceSimulation` with `d3.forceLink` and `d3.forceManyBody` to position related characters closer together. Draggable circles are colored by group using `d3.scaleOrdinal`, and link thickness reflects co-occurrence frequency. The code loads literal, inlined data instead of an external JSON file, though a separate `miserables.json` dataset is also provided.

AI-generated description

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.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4062045'>Force-Directed Graph with Literal Data</a>

bsd-3-clause Licensed

Similar vizzes