Fork of Bowl of Fruit - General Update Pattern Special Cases
This example demonstrates the enter, update, and exit phases of D3’s general update pattern using a bowl of fruit. It shows apples and lemons as SVG circles with labels, transitioning through five sequential state changes: adding apples, removing one, mutating a fruit type, and filtering out a specific index. The code uses `selection.merge()`, `selection.exit()`, and `selection.remove()` to handle dynamic data, with ordinal scales for color and radius. Rendering is SVG-based, and data mutations are driven by `setTimeout` callbacks.