Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Selection Exploration

Public visualization

Viewing a saved revision (read-only)

359ca8907bc14510bebf03c42e37f22d

Fork of D3 Selection Exploration

0 stars1🌍 Public
MMichael Bergerson
Last edited Apr 5, 2022
Created on Jun 17, 2021

Two clusters of thin vertical rectangles orbit and pulse around a central point, alternating between red and pink fills as they shift position every frame. The animation runs on a 60fps interval, regenerating a 30-point dataset from sine and cosine functions to update each rectangle's x, y, and fill properties. The example uses D3 v6 selections with `.data()` and `.join("rect")` to bind the dynamic data to SVG elements, while the commented-out circle code and `vizData` module suggest alternative rendering approaches.

AI-generated description