Bowl of Fruit - General Update Pattern Special Cases
A bowl of fruit demonstrates D3's general update pattern with special cases, showing apples and lemons as colored circles that appear, disappear, and change type over time. Using `d3.scaleOrdinal` for color and radius, the code binds fruit data to SVG `g` elements, merging entering and updating selections with `.merge()` and removing exits with `.exit().remove()`. Timed `setTimeout` calls trigger updates: removing the last apple, replacing one apple with a lemon, and filtering out a middle fruit. The example renders in an SVG container with a rounded rectangle bowl drawn via `rect` attributes.