Skip to main content
100%

Gist b90900e705a70b8c3a48b3ec6651dc97

✓ Published0🌍 Public
PPeleke
Last edited Feb 22, 2020
Created on Feb 22, 2020

This example visualizes a synthetic dataset of points distributed across a Cartesian plane, showing how a force-directed layout positions them relative to one another. The code uses `d3.forceSimulation` with collision and centering forces to compute node positions, then renders the result as SVG circles via `d3.select` and `d3.forceCollide`. The simulation runs in the browser, and the visualization updates in real time as forces settle, with each node’s color and radius set from the generated data. No external data file is loaded; all values are produced programmatically.

AI-generated description

Similar vizzes