Bowl of Fruit - General Update Pattern
A bowl of fruit demonstrates the general update pattern in D3, showing how data joins handle entering, updating, and exiting elements. Five apple circles appear initially, then an apple is removed, a lemon replaces an apple, and another apple is filtered out. The code uses `d3.scaleOrdinal` for color and radius mappings, `selection.enter()` and `.merge()` for updates, and `selection.exit().remove()` for removals, all rendered as SVG circles in an HTML page with D3 v5.