Force-directed Layout
✓ Published0🌍 Public
This example shows a force-directed network layout of a graph dataset from the Network Data Repository. Nodes appear as orange circles, with gray links connecting them; hovering over a node displays its ID in a tooltip. The visualization uses D3.js v6 with `d3.forceSimulation`, `d3.forceLink`, and `d3.forceManyBody` to compute node positions, while `d3.drag` enables interactive node repositioning. Data is loaded from a CSV file, and the SVG rendering updates continuously during simulation ticks, with node colors assigned via `d3.scaleOrdinal`.
AI-generated descriptionMIT Licensed