Skip to main content
100%

Force Graph Starter

✓ Published1🌍 Public
AAmir
Last edited Mar 28, 2021
Created on Mar 28, 2021
Forked from HTML Starter

This example shows a minimal force-directed graph with three nodes and two links, rendered as SVG circles and lines. The simulation uses `d3.forceSimulation` with `forceManyBody`, `forceLink`, and `forceCenter` to position the nodes, while a `tick` event updates the circle and line coordinates. Data consists of hardcoded node IDs and link indices in `index.js`, styled with a large font size and hidden overflow via `index.css`. The code imports from D3 v6 and runs within a React-free HTML page, using a fixed 960×500 SVG viewport.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes