Force Directed Graph Toggle to Circle
This interactive visualization presents the character co-occurrence network from *Les Misérables* as a force-directed graph. Users toggle between the physics-based layout and an arranged circle formation. The D3.js v3 code uses `d3.layout.force` for the initial graph and applies a one-second transition via `transition().duration(1000)` to animate nodes and links into circular positions. The example is a fork of a gist by bricof, based on Mike Bostock's original force-directed graph example.
AI-generated descriptionBased on Mike Bostock's force-directed graph example showing character co-occurence in Les Misérables, this gist shows how to toggle between the animated force-directed graph and a circle formation akin to a chord diagram.
forked from <a href='http://bl.ocks.org/bricof/'>bricof</a>'s block: <a href='http://bl.ocks.org/bricof/5502b02332570c820e4a41db0b165089'>Force Directed Graph Toggle to Circle</a>
forked from <a href='http://bl.ocks.org/Thanaporn-sk/'>Thanaporn-sk</a>'s block: <a href='http://bl.ocks.org/Thanaporn-sk/ffd8270e0c5b30d42dcc1b92974b63fc'>Force Directed Graph Toggle to Circle</a>