Bowl of Fruit - General Update Pattern
✓ Published1🌍 Public
Five fruits—apples and a lemon—sit in a row, animating in and out of a bowl. The example demonstrates the general update pattern: entering circles scale up from radius zero, exiting circles shrink to zero, and the one changed apple transitions into a lemon with a new color and radius. Built with d3.v6 and the `select`, `scaleOrdinal`, and `.transition().duration()` API, the SVG circles are driven by a `fruitBowl` function that handles enter, merge, and exit states.
AI-generated descriptionMIT Licensed