Skip to main content
100%

Project Fork

✓ Published0🌍 Public
Ttkcj0912
Last edited Jun 23, 2023
Created on Jun 23, 2023
Forked from HTML Starter

This example shows a simple force-directed network graph with three nodes connected by directed links, rendered in an SVG container using React. The code uses D3 v6’s `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` to position circular nodes, while lines represent links. On simulation end, node sizes increase by 3 pixels per incoming link count. The included `miserables.json` suggests a potential dataset, though the sample uses hardcoded nodes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes