Skip to main content
100%

8

✓ Published0🌍 Public
Hharoldle
Last edited Mar 29, 2023
Created on Mar 27, 2023
Forked from HTML Starter

This example presents a force-directed network graph where circular nodes, colored teal and labeled with text, are connected by light-gray links. The layout is computed using `d3.forceSimulation`, with `d3.forceLink` for edges, `d3.forceManyBody` for repulsion, and `d3.forceCenter` to keep the graph centered. Node positions update on each simulation tick, adjusting the circle and label coordinates via `attr`. The data is loaded as JSON from a GitHub gist, and the visualization is rendered as an SVG inside a React-prepared HTML page using D3 v4.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes