{"version":"1.0","type":"rich","title":"Bowl of Fruit- General Update Pattern","description":"This example demonstrates the general update pattern in D3, showing how data joins handle entering, updating, and exiting elements with smooth transitions. Circles represent fruits and are color-coded by type using `scaleOrdinal` for both color and radius. The `fruitBowl` function uses `selection.data`, `.enter()`, `.merge()`, and `.exit()` with `transition().duration()` to animate new apples fading in and removed fruits shrinking away. A series of `setTimeout` calls manipulates the fruit array, popping an apple, changing one to a lemon, and filtering another, all rendered as SVG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6c5c538164ff4c8bb9de44c7c4554b55?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}