Skip to main content
100%

Organization Graph Diagram

✓ Published0🌍 Public
Uuplusv
Last edited Oct 7, 2023
Created on Oct 7, 2023
Forked from D3 Starter

This example shows a small, three-node organization graph rendered as an SVG with circular nodes linked by straight black lines. Users can drag any node to reposition it, and the layout updates dynamically. The force-directed simulation uses `d3.forceSimulation` with `forceManyBody`, `forceLink`, and `forceCenter`. Dragging is handled by `d3.drag`, which sets fixed positions and restarts the simulation. The tick event updates circle and line coordinates. Data is defined inline as three nodes and two links, built with D3 v7 and rendered to SVG.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes