Fork of Bowl of Fruit - General Update Pattern Special Cases
This example demonstrates the general update pattern for data joins in D3, showing how enter, update, and exit selections handle changing fruit data. A row of apples is rendered as SVG circles and text labels, then modified through three timed transitions: an apple is removed, an apple changes into a lemon, and another apple is eaten. The code uses d3-selection’s `data()`, `enter()`, `merge()`, and `exit()` methods, along with `selection.transition()` for smooth updates. It relies on ordinal scales for color and radius mapping, and the data is hardcoded as JavaScript objects in `d3.range()`.