Skip to main content
100%

Node Linked Diagram with Force Directed Layout

✓ Published0🌍 Public
Hhollyjpotter
Last edited Mar 29, 2022
Created on Mar 29, 2022
Forked from HTML Starter

This example displays a node-link diagram using a force-directed layout, visualizing connections from the soc-firm-hi-tech network data repository. It renders purple circular nodes and black links in SVG with animation, where hovering enlarges a node and dragging repositions it. The code builds the simulation with `d3.forceSimulation`, applying `d3.forceManyBody` for repulsion, `d3.forceCenter` for centering, and `d3.forceLink` for edges, updating positions via a ticked handler.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes