Skip to main content
100%

D3 Selection Exploration

✓ Published1🌍 Public
Ccssergio
Last edited May 25, 2022
Created on May 25, 2022

A small set of circles animates in a sine wave pattern, with the number of circles oscillating between nine and nineteen based on time. This reproduction of a Sol LeWitt art piece uses D3 selections with the `join()` method to enter, update, and exit circle elements each frame. The SVG rendering updates at 60 frames per second via `setInterval`, with circle positions calculated using `Math.sin` and the time variable `t`. The code imports `select` and `range` from d3 and uses `.attr` to set circle radius and coordinates.

AI-generated description

A reproduction of a Sol LeWitt art piece.

MIT Licensed

Similar vizzes