Fork of Circles with D3
✓ Published0🌍 Public
This example shows a force-directed graph of three interconnected nodes, rendered as steel-blue circles and gray links in an SVG container. The code defines nodes and links as static sample data and uses d3.forceSimulation with the link, charge, and center forces to position the elements, updating their coordinates on each tick. Node dragging is enabled through d3.drag, and the simulation restarts when a node is moved. The visualization demonstrates the classic D3 pattern of binding data to SVG elements and animating their positions via a physics simulation.
AI-generated descriptionCreating circles with D3.
Challenge
- Fork this example
- Modify it
- Maybe make it Halloween themed
- Maybe make it Christmas themed
- Be creative
Svelte
Here's a video on how to get started with Svelte as well!
MIT Licensed