Bowl of Fruit - Greneral Update Pattern Part4
A bowl of fruit shows a sequence of apples and lemons rendered as colored circles with labels. The example demonstrates the general update pattern in D3 v5, where data joins handle enter, update, and exit selections to add, modify, or remove elements. The code uses `selection.data()`, `enter()`, `merge()`, and `exit()` within an SVG, with `scaleOrdinal` mapping fruit types to colors and radii. Timed updates simulate eating apples and replacing one with a lemon, triggering re-renders that update the visualization.