Corey Fork of Circles with D3
✓ Published0🌍 Public
This example draws a collection of colored circles and rectangles on an SVG canvas with a light blue background. The shapes are positioned using fixed coordinate arrays in the code, with each circle and rectangle assigned a specific fill color and opacity value. The implementation uses D3's selection and data-join methods, including `selectAll`, `data`, and `join`, to bind the shape data to the SVG elements. Rectangles are created by calculating width and height from paired corner coordinates, while circles use center coordinates and radius values.
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