Fork of Circles with D3
✓ Published0🌍 Public
Rrichard.adamson@hotmail.com
This example displays six semi-transparent circles of varying sizes and colors scattered across a pale green background. The circles are drawn using D3’s data join pattern within a Svelte component. The code imports `select` from D3, sets the SVG dimensions to match the container, and binds an array of position, radius, and fill values to each circle. Rendering is handled reactively when the container’s size changes, with opacity fixed at 0.708.
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