Skip to main content
100%

d3-force testing ground

✓ Published0🌍 Public
TThanaporn-sk
Last edited Aug 26, 2017
Created on Aug 26, 2017

This interactive demo provides a testing ground for adjusting the forces in a force-directed graph layout. Using the `d3.forceSimulation` API, it visualizes the connections of the classic *Les Misérables* character co-occurrence network, rendered as SVG nodes and links. A control panel allows the user to enable or disable and tune parameters for individual forces, including `d3.forceLink`, `d3.forceManyBody`, `d3.forceCollide`, `d3.forceCenter`, and directional pull forces, with an alpha bar to monitor simulation activity.

AI-generated description

This demo lets you interactively try various settings and combinations of forces for d3-force.

It's based on Mike Bostock's example code for a force directed graph.

forked from <a href='http://bl.ocks.org/steveharoz/'>steveharoz</a>'s block: <a href='http://bl.ocks.org/steveharoz/8c3e2524079a8c440df60c1ab72b5d03'>d3-force testing ground</a>

gpl-3.0 Licensed

Similar vizzes