🌍 Public
Viewing a saved revision (read-only)
8329c2db2c0b4fa7b5b30cff1bae60d2
Tree hierarchy
This example visualizes a social network graph with six person nodes and seven friendship links using a force-directed layout. The D3.js force simulation (`d3.forceSimulation`) positions nodes in an SVG canvas, applying link, charge, and centering forces to arrange connections naturally. Each node is rendered as a colored circle with an adjacent text label, while lines represent relationships. Users can drag nodes via `d3.drag`, which temporarily fixes their positions during interaction, and the simulation updates positions on each tick event.
AI-generated description