Skip to main content
100%

MY GRAPH

✓ Published0🌍 Public
RRU-PACE
Last edited Nov 1, 2022
Created on Nov 1, 2022
Forked from HTML Starter

This example shows a minimal force-directed network graph with three nodes (Alice, Bob, Carol) arranged in a chain via two links. The nodes and links are defined as JavaScript arrays, and the simulation is created using the d3.forceSimulation API from D3 v6. The graph applies three forces: forceManyBody for repulsion between nodes, forceLink to pull connected nodes together, and forceCenter to keep everything centered in the SVG viewport. The simulation ticks are logged to the console, though no visual updates are implemented beyond the initial static layout.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes