🌍 Public
Viewing a saved revision (read-only)
e89969938edb4410a4502c3f05fba0c9
Fork of HTML Starter
This example shows a tiny force-directed graph with three nodes (Alice, Bob, Carol) and two directed links, animated as the nodes repel and attract each other within an SVG canvas. The simulation uses D3's `forceSimulation`, `forceManyBody`, `forceLink`, and `forceCenter` APIs to calculate positions each tick. Avatar circles and connecting lines are rendered as SVG elements, with coordinates updated directly from the simulation's `tick` event.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.