Fork of D3 Starter
✓ Published0🌍 Public
This example demonstrates basic SVG rendering and interactive dragging in D3 v7. It uses `d3.select` to append an SVG canvas and randomly positions 20 circles across a 960×500 coordinate space. The circles are rendered with `data` joins and the `join("circle")` method. Drag behavior is implemented with `d3.drag()`, which handles the `start`, `drag`, and `end` events to update circle positions via `event.x` and `event.y`. The code imports helpers such as `range`, `select`, and `drag` from the D3 module.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed