🌍 Public
Viewing a saved revision (read-only)
ed71dd416e12434d87deb52f0c8b8be0
Bowl of Fruit - Update Pattern
Five apples appear as red circles in an SVG bowl, then shrink and disappear as the dataset changes over time. A lemon replaces one apple, turning yellow and changing radius, while another apple is removed entirely. The example demonstrates the D3 update pattern using `selection.data`, `enter`, `merge`, and `exit` with `d3.scaleOrdinal` for color and size. Transitions animate position and radius over one second via `transition().duration`.
AI-generated description