Skip to main content
100%

Force Directed Graph Starter

✓ Published1🌍 Public
AAnthony Ynami
Last edited Mar 2, 2021
Created on Mar 1, 2021
Forked from HTML Starter

A force-directed graph displays three nodes—Alice, Bob, and Carol—connected by two unidirectional links. Built with D3 v6, it uses `d3.forceSimulation` with `forceManyBody`, `forceLink`, and `forceCenter` to compute node positions. The SVG renders circles and lines, updating their `cx`, `cy`, `x1`, `y1`, `x2`, and `y2` attributes on each simulation tick. The example demonstrates a minimal setup for interactive network layouts using static data defined in JavaScript.

AI-generated description
MIT Licensed

Similar vizzes