Skip to main content
100%

D3 Selection

✓ Published0🌍 Public
SSami Friedrich
Last edited Oct 21, 2025
Created on Oct 21, 2025
Forked from HTML Starter

This example demonstrates a dynamic update of 15 circles that move and resize in a sine-wave pattern, animated via a timer. The visualization uses D3 version 6.6.1 with the selection API to bind data to SVG circles and synchronize their positions and radii. Each circle’s x-coordinate is fixed, while its y-coordinate and radius oscillate over time. The animation runs at 60 frames per second using setInterval, with a data transformation that maps array indices to circle attributes. The SVG is rendered as a full-window graphic with an orange fill, and the code relies on d3.select, selectAll, and range.

AI-generated description
MIT Licensed

Similar vizzes