Tree hierarchy
✓ Published1🌍 Public
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 descriptionMIT Licensed