Skip to main content
100%

Circles with D3 Cleaned Up

✓ Published1🌍 Public
CCurran Kelleher
Last edited Sep 4, 2025
Created on Sep 4, 2025
Forked from Circles with D3

Fourteen colored circles, each with a unique position, radius, and color, are rendered on a 960×500 SVG canvas. The visualization demonstrates a clean, data-driven approach to drawing circles using D3 v7. The code binds an array of circle data to SVG circle elements using `selectAll`, `data`, and `join`, setting the `cx`, `cy`, `r`, and `fill` attributes directly from each data object. The data is defined in a separate module and the visualization logic is contained in a reusable `viz` function, making the example modular and easy to extend.

AI-generated description
MIT Licensed

Similar vizzes