Bowl of Fruit - General Update Pattern
✓ Published0🌍 Public
Five apples appear as red circles in a row, then shrink and disappear as they are removed one by one. One apple turns yellow and becomes a lemon, demonstrating how data updates map to visual changes. The example implements the general update pattern using `selection.data()`, `enter`, `merge`, and `exit` selections. D3 transitions animate radius changes over one second, with `scaleOrdinal` mapping fruit types to colors and sizes in an SVG.
AI-generated descriptionMIT Licensed