{"version":"1.0","type":"rich","title":"Bowl of Fruit - General update pattern","description":"This example demonstrates the general update pattern in D3.js, showing how a bowl of fruit changes as apples are eaten or transformed into lemons over time. A sequence of timed events triggers data updates, and the visualization transitions between three scenarios: removing an apple, changing one apple to a lemon, and filtering out another apple. The code uses D3 v5 with `selectAll` and `data` joins to handle enter, update, and exit selections, plus `scaleOrdinal` for color and radius mappings. SVG circles and text elements render each fruit based on its type.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f4d591c0bb9040cc9886851f24c7d3c2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}