Skip to main content
100%

d3-force testing ground

✓ Published0🌍 Public
Aajayjayayy
Last edited Aug 9, 2018
Created on Aug 9, 2018

This interactive tool demonstrates how different settings for d3-force forces affect a force-directed graph’s layout. Users adjust parameters for charge, collide, link distance, center, and forceX/forceY through sliders and checkboxes, with the visualization updating in real time. The graph, based on the Les Misérables character co-occurrence dataset, renders as SVG circles and lines using d3.forceSimulation, d3.forceManyBody, d3.forceCollide, and d3.forceLink. Node positions update on each simulation tick, and drag interaction lets users manually reposition nodes.

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