network
✓ Published0🌍 Public
This example visualizes a conceptual friendship network, showing seven people as circles connected by labeled links that represent relationships like "Close Friends" and "Project Partners." A force-directed layout simulation positions the nodes, repelling them apart while pulling connected nodes closer. The visualization is rendered as an SVG using D3.js v7, with the simulation and layout handled by `d3.forceSimulation` and its associated `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` APIs. Nodes are colored by group using `d3.scaleOrdinal` with `d3.schemeSet2`, and users can drag circles to interactively reposition the network.
AI-generated descriptionMIT Licensed