🌍 Public
Viewing a saved revision (read-only)
df15733eee8546f7b373011de4979891
Network
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 description