Skip to main content
100%

Fork of Circles with D3

✓ Published0🌍 Public
CCurran Kelleher
Last edited Mar 12, 2024
Created on Mar 12, 2024
Forked from Circles with D3

This example uses D3 to render a static collection of semi-transparent circles on a light green background. It shows how the `selectAll` and `join` pattern efficiently binds an array of data objects to SVG circle elements, each with its own position, radius, and color. The visualization demonstrates D3’s data-driven approach by defining the circles’ coordinates and styling in the data array, then applying these values via attributes like `cx`, `cy`, `r`, and `fill`. The code uses `select` from D3 and relies on the `join` method to manage DOM elements, creating a clean, declarative scene without interaction or animation.

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