Fork of Circles with D3
✓ Published0🌍 Public
This example shows a simple dog face built from basic SVG shapes, rendered in a 200x200 viewport using D3.js v5. The code draws a brown face circle, two black eye circles, a pink nose, and a curved mouth path generated with the `d3.arc()` API. Each element is appended directly to the SVG container with explicit `cx`, `cy`, and `r` attributes. The visualization demonstrates foundational D3 selection and attribute-setting methods for static, data-free graphics. The mouth uses an arc path transformed into position, while the overall composition relies on hardcoded coordinates rather than scales or data joins.
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