Skip to main content
100%

d3 selections

✓ Published0🌍 Public
NNafi
Last edited Jul 13, 2022
Created on Jul 13, 2022

Twenty colored circles undulate vertically across the full screen, their radii pulsing and colors randomly changing at 60 frames per second. This animation demonstrates d3 selections and data joins, where a static `range(20)` array is repeatedly re-bound to existing circle nodes via `selectAll('circle').data(data)`. Using d3 version 6.6.1, the `enter()` selection appends new circles with random fills, while the update selection adjusts `cx` and `cy` attributes based on a sine wave offset by time `t`. The SVG renders in the browser body without margins.

AI-generated description

Sol LeWitt Arts reproduction

MIT Licensed

Similar vizzes