Fork of Circles with D3
✓ Published0🌍 Public
A simple D3 visualization displays six static circles of varying sizes and colors on a yellow background. Each circle is positioned by explicit x and y coordinates and assigned a fixed radius and fill color from a hardcoded data array. The code uses D3’s `select`, `selectAll`, `data`, and `join` methods to bind the array to SVG `<circle>` elements, setting attributes like `cx`, `cy`, `r`, and `fill`. The visualization is rendered inside a Svelte component via an exported `main` function that receives a container element.
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