D3 - Nodelink - Force Directed Layout
✓ Published0🌍 Public
This example shows a force-directed node-link diagram of dolphin social relationships, with each circle representing a dolphin and lines indicating connections. The visualization uses D3 v7 APIs including `d3.forceSimulation`, `d3.forceManyBody`, `d3.forceLink`, and `d3.forceCenter` to compute the layout, while SVG circles and lines render the nodes and edges with animated positions on each tick. A hover tooltip, styled as a div element, displays the dolphin identifier. The data originates from a CSV file of dolphin interaction pairs loaded via `d3.csv`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed