Fork of Bowl of Fruit - General Update Pattern Special Cases
This example demonstrates the general update pattern in D3 with special cases for data joins, showing apples and lemons in a bowl. The visualization cycles through scenarios: removing an item, modifying an existing item’s type, and filtering the array. The code uses d3-selection’s `enter`, `merge`, and `exit` methods to handle updates, with `scaleOrdinal` mapping fruit types to colors and radii. Rendered as SVG, the bowl is a styled rectangle, and fruits are circles with labels, updated via `setTimeout` calls in d3.v5.