Skip to main content
100%

Fork of Circles with D3

✓ Published0🌍 Public
NNJ Smith
Last edited Sep 6, 2025
Created on Sep 6, 2025
Forked from Circles with D3

This example presents a static scatterplot-like arrangement of 14 colored circles on a 960 by 500 SVG canvas. Each circle is positioned using explicit `cx`, `cy`, and `r` attributes, with a distinct hexadecimal fill color. The code uses D3 v7’s data join pattern (`selectAll`, `data`, `join`) within a reusable `renderCircles` function, binding the `circlesData` array to SVG `<circle>` elements. The visualization directly renders this hardcoded dataset without any interaction or animation, demonstrating a clean, minimal approach to data binding and attribute assignment.

AI-generated description
MIT Licensed

Similar vizzes