{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the General Update Pattern with a bowl of fruit that changes over time: five apples appear, then one is removed after a second. It shows how to handle enter, update, and exit selections in D3 v5 using SVG.\n\nThe code imports `scaleOrdinal` from `d3` to map fruit types to colors and radii, and uses `selection.merge()` to combine entering and updating groups. The fruit bowl itself is a rounded rectangle appended once via a `[null]` data join. A `setTimeout` triggers the pop operation to remove an apple.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d7f70567bcec4d97854c54242d6d19aa?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}