Bowl of fruit General Update Pattern 2
A bowl of fruit demonstrates the general update pattern in D3, showing how apples and lemons are added, removed, and modified in an SVG visualization. The code uses D3 v6 with `selection.enter`, `selection.merge`, and `selection.exit` to handle data joins, while `scaleOrdinal` maps fruit types to colors and radii. Over timed intervals, the example pops apples from the array, replaces one apple's type with a lemon, and filters out another, with each change re-rendering the bowl and updating the circle and text elements accordingly.