🌍 Public
Viewing a saved revision (read-only)
347cb0448bcc4ddcb6b0e8b00aee6c54
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