Downing 5320 ice8 2.3
✓ Published0🌍 Public
This example visualizes a social network of characters from *The Lord of the Rings* as an interactive force-directed graph. Nodes represent characters, colored red and labeled with names, while directed links show "Friend with" relationships derived from a local `data.json` file. Users can drag nodes to reposition them, with hover effects highlighting selected nodes. The visualization uses D3 v4’s `d3.forceSimulation`, `d3.forceLink`, `d3.forceManyBody`, `d3.forceCollide`, and `d3.forceCenter` to compute the animated layout, with SVG markers for arrowheads and drag handlers enabling interaction.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed