Skip to main content
100%

Fork of Circles with D3

✓ Published2🌍 Public
Eeschuman20@gmail.com
Last edited Jan 12, 2024
Created on Jan 12, 2024
Forked from Circles with D3

This example uses D3 to draw a stacked snowman from hardcoded SVG elements, including circles of decreasing size, a hat made of two rectangles, branch-like arms rendered as lines, and a triangular carrot nose. The background, shapes, and semi-transparent styling are defined within the main function, which selects the container to create an SVG canvas. The code specifically leverages D3’s `select`, `join`, and attribute setters for circles, rectangles, lines, and a polygon, all with fixed pixel coordinates and colors.

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
MIT Licensed

Similar vizzes