Force Directed Graph Starter
✓ Published1🌍 Public
This example demonstrates a minimal force-directed graph with three nodes and two links, rendered as circles and lines in an SVG container. The visualization uses D3 v7’s `forceSimulation` with `forceManyBody`, `forceLink`, and `forceCenter` to position the nodes, updating their coordinates on each tick event. The graph is initialized with hardcoded data for nodes (Alice, Bob, Carol) and edges between them, showing the basic mechanics of a physics-based layout without additional styling or interactivity.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed