Skip to main content
100%

Teddy Bear

✓ Published1🌍 Public
BBelede Rahul
Last edited Feb 28, 2024
Created on Feb 27, 2024
Forked from Circles with D3

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 description

Creating 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

Similar vizzes