Bowl of Fruit - Update Pattern
✓ Published2🌍 Public
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 descriptionMIT Licensed