Bowl of Fruit- General Update Pattern
This example demonstrates D3’s general update pattern for animating SVG circles that represent a bowl of fruit. Fruits are initially apples, then are removed, replaced with lemons, or deleted at timed intervals, with enter, update, and exit selections handled via `data()`, `merge()`, and `transition()`. The code uses `scaleOrdinal` for color and radius, computes x-position from index, and animates radius from 0 on enter and to 0 on exit over one-second transitions, with updates triggered by `setTimeout`.