Fork of ICE 8 - STEP 2(B) - VISUALIZING NETWORKS
✓ Published0🌍 Public
This example shows a small friendship network among seven students in a study group, using a force-directed layout to position nodes and links. The D3.js code uses `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` to compute the layout, while nodes are rendered as SVG circles and labels as text. Links are drawn as gray lines, and nodes are colored with `d3.schemeSet2`. The simulation updates positions on each tick, and nodes can be dragged with `d3.drag` to explore the network interactively.
AI-generated descriptionMIT Licensed