Skip to main content
100%

D3 Force Simulation

✓ Published0🌍 Public
TTamayoValencia
Last edited Aug 11, 2018
Created on Aug 11, 2018

A force-directed network graph displays seven people connected by social links, with node size encoding age and color encoding gender throughout the simulation. The layout uses `d3.forceSimulation` with multiple forces: `d3.forceX` for gender-based horizontal separation, `d3.forceY` for vertical centering, `d3.forceCollide` for collision avoidance, and `d3.forceLink` for edge attraction. Users can drag nodes via `d3.drag()`, which dynamically adjusts the simulation’s temperature. Data is hardcoded as JavaScript arrays and rendered to SVG with circles and lines.

AI-generated description

Built 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

Similar vizzes