Bowl of Fruit - General Update Pattern
This example demonstrates D3’s general update pattern by animating a bowl of fruit as apples are added, removed, or converted to lemons. Circles and labels enter, update, and exit with staggered transitions, using keyed data joins and ordinal scales for color and radius. The code relies on `selection.enter`, `merge`, `exit`, and `transition` to animate position, size, and fill over one-second durations. SVG rendering with D3 v5 drives the visualization, which is orchestrated by timed function calls in `index.js`.