🌍 Public
Viewing a saved revision (read-only)
92ac3b0fd9d94b95a84c996d1cac0f13
Fork of Circles with D3
This example renders a generative spiral of 500 semi-transparent circles that grow and shift in a golden-hued gradient across a pale green canvas. The visualization uses D3 v7’s `select` API and the `.join()` operator to declaratively create and update an SVG, computing each circle’s `cx`, `cy`, `r`, and `fill` from sine and cosine functions of its index. The code demonstrates D3’s modern “join” pattern for idempotent state management, with the container’s dimensions driving the spiral’s center and radius.
AI-generated description