{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the D3 general update pattern by animating a bowl of fruit, where circles representing apples and lemons appear, disappear, and change color through data-driven transitions. It shows enter, update, and exit selections working together as fruits are eaten or replaced over time. The code uses `selection.data()` with a key function, `selection.enter()`, `selection.merge()`, and `selection.exit()` alongside `transition()` for smooth radius and position changes. D3’s `scaleOrdinal` maps fruit types to colors and radii, while `Math.random()` generates unique IDs for each fruit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ba825b0db8914d9d99d1d56dec66d8d6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}