Teddy Bear
✓ Published1🌍 Public
This example uses D3 to draw a teddy bear composed entirely of SVG circles, an ellipse for its nose, and rectangular hat pieces. The visualization shows a simple, stylized bear face with a body, ears, eyes, and a smile, all rendered on a pink background. The code selects a container, creates an SVG canvas sized to its dimensions, and appends each shape using D3’s selection and attribute methods, such as `append` and `attr`. The bear’s features are positioned relative to the container’s center, with a maroon hat layered on top to complete the illustration.
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