Bowl of Fruit - General Update Pattern with Animation
✓ Published2🌍 Public
This example demonstrates the general update pattern for animating a data set over time. A row of five apples is shown as red circles that shrink to zero radius when removed and change into a yellow lemon when a type updates. The code uses D3 v5 with a custom `fruitBowl` function that separates enter, merge, and exit selections, applying `transition().duration(1000)` to animate the radius and x-position of the circles.
AI-generated descriptionTutorial!
MIT Licensed