d3-force testing ground
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 descriptionThis 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>