Network
✓ Published3🌍 Public
This example shows a small friendship network of six people, with labeled nodes connected by gray links to indicate relationships. Using d3.forceSimulation, the code applies a link force for connection distance, a many-body charge force for repulsion, and a center force to anchor the graph. Nodes are rendered as skyblue circles in SVG, with drag interactions enabled via d3.drag to reposition them during the simulation.
AI-generated descriptionMIT Licensed