Skip to main content
100%

A8 - node-link diagram for another dataset

✓ Published0🌍 Public
DDuc Pham
Last edited Apr 1, 2024
Created on Mar 31, 2024

This example presents a node-link diagram of a large directed graph, using a force-directed layout to position nodes and edges. The visualization highlights the network’s structure, with orange circular nodes and gray links, and includes interactive tooltips that display node IDs on hover. The code relies on D3 v7’s `d3.forceSimulation`, `d3.forceManyBody`, and `d3.forceLink` to compute the layout, while rendering via SVG elements (`circle` and `line`). Data is loaded as CSV from a GitHub gist, with edges defined by source and target node columns.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes