D3 Force Simulation
✓ Published0🌍 Public
TTamayoValencia
Last edited Aug 11, 2018
Created on Aug 11, 2018
This example uses D3 v4’s force simulation to lay out a small social network of seven named people connected by eight friendship links. Node size encodes each person’s age via a square-root scale, while a title tooltip reveals the name on hover. The simulation combines `d3.forceSimulation` with `d3.forceCenter`, `d3.forceManyBody`, `d3.forceCollide`, and `d3.forceLink`, rendering nodes as circles and links as lines in an SVG. The layout updates continuously on each tick, with positions recalculated in the `ticked` function.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/john-guerra/'>john-guerra</a>'s block: <a href='http://bl.ocks.org/john-guerra/2b66626b2338ced4718b1bf3f7283e49'>D3 Force Simulation</a>
mit Licensed