🌍 Public
Viewing a saved revision (read-only)
fdf0145718634e9fb77237d86632c496
Project Org
This example shows a minimal force-directed network graph of three nodes (Alice, Bob, Carol) and two links, rendered inside an SVG container. Using D3 v6, it sets up a `forceSimulation` with `forceManyBody`, `forceLink`, and `forceCenter` to position the nodes and edges dynamically. The simulation logs each tick to the console, but no visual rendering occurs beyond the initial SVG setup. The code is a bare React-free HTML page that loads D3 from a CDN and uses `d3.forceSimulation` to manage the physics.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.