🌍 Public
Viewing a saved revision (read-only)
e44df5e836ee4c29a01a745c21887fb5
Fork of D3 Selection Exploration
This example explores D3 data joins and SVG animation as a sine wave drives a changing dataset. A set of circles and connecting lines is redrawn on each frame, with the line stroke-width bound to each circle’s radius. The code uses `d3.select`, `selection.data`, and `.join()` to update shapes, while `d3.range` and `scaleLinear` in `makeData` generate positions and sizes.
AI-generated description