MY GRAPH
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed