Fork of Circles with D3
✓ Published0🌍 Public
This example uses D3 to draw a set of six colorful circles on a light green SVG canvas, each with a distinct position, radius, and fill color. The rendered circles are semi-transparent, creating subtle overlaps. Built with Svelte, the code imports `select` from d3 and leverages a data array to bind circles to the SVG, setting attributes like `cx`, `cy`, `r`, `fill`, and `opacity`. The visualization demonstrates a basic data-join workflow with D3 in a Svelte component.
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