Bowl of Fruit - General Update Pattern Special Cases
This example demonstrates a general update pattern applied to a bowl of fruit, where apples and lemons are added and removed from the scene over time. The visualization uses D3 v5 with SVG rendering to draw circles and text labels for each fruit, with color and radius scales differentiating the two types. The code explicitly shows the enter, update, and exit states of the data-driven elements as fruits are eaten or replaced, highlighting how D3 handles special cases of the update pattern.