Bowl of Fruit- General Update pattern
A bowl of fruit rendered as SVG circles demonstrates D3.js's general update pattern, managing enter, update, and exit selections as apples are eaten, replaced, and removed over timed intervals. The code uses `d3.select`, `selection.data` with key functions, and chained `.transition()` calls to animate radius changes, while `scaleOrdinal` maps fruit types to colors and sizes. Apples appear red, lemons yellow, and each fruit’s unique `id` key tracks individual elements during updates.