Skip to main content
100%

CirclesWithD3-IanCoolidge

✓ Published0🌍 Public
IIan Coolidge
Last edited Jan 15, 2024
Created on Jan 15, 2024
Forked from Circles with D3

Three Christmas trees built from overlapping green circles stand on brown rectangular bases across a light blue background. The example uses D3.js version 7’s `select` and data joins to bind circle and rect elements to arrays of tree layer and base objects, with a `makeTree` function duplicating the initial centered tree into three positions. The rendering approach sets SVG attributes like `cx`, `cy`, `r`, and `fill` directly from the data, demonstrating a straightforward declarative pattern for generating repeated geometric shapes.

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