{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern.js","description":"This example demonstrates how the general update pattern in D3 can handle dynamic changes to a dataset representing fruit in a bowl. An initial set of apples is rendered as colored circles with labels inside a rounded rectangle, and updates occur over time as apples are removed or replaced with lemons. The code uses `selectAll`, `enter`, `merge`, and `exit` to manage SVG groups, with `scaleOrdinal` mapping fruit types to colors and radii. Timed `setTimeout` calls trigger re-rendering of the bowl via the custom `fruitBowl` function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/70bfbb4b8426457689cebe08971af5d0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}