{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates D3’s general update pattern with special cases for handling dynamic data changes in an SVG visualization. It shows a bowl of fruit where apples and lemons are added, removed, or replaced over time, with circles and text labels updating accordingly. The code uses `d3.scaleOrdinal` for color and radius mapping, and employs selection methods like `enter()`, `merge()`, and `exit()` to manage DOM updates. Data comes from an array of fruit objects modified through `pop()` and `filter()`, triggering re-renders via `setTimeout`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/64c62d6d83584b13b728928f979740fc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}