HW Bowl of Fruit - General Update Pattern Special Cases
This example demonstrates the d3 general update pattern’s special cases, using a bowl of fruit to show what happens when data entries are removed, replaced, or reordered. Animated transitions shrink and fade out exiting circles and text, while entering elements are drawn at their new positions. The code relies on d3’s `select`, `scaleOrdinal`, and `transition` APIs, with SVG rendering and pre-set timeouts driving the sequence. The fruit types are encoded by color and radius, with text labels showing type names, all within a static bowl-shaped rectangle.