Bowl of Fruit - General Update Pattern
This example demonstrates the general update pattern for animating SVG circles, where fruits (apples and lemons) appear as colored circles that grow, change color, and shrink when the underlying data array is modified. The visualization uses D3 v5's selection API with `.enter()`, `.merge()`, and `.exit()` methods to handle data changes, while `transition().duration(1000)` animates radius and x-position over one second. The code imports `scaleOrdinal` for color and radius mappings, and triggers updates via `setTimeout` to simulate eating and replacing fruit.