{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for handling data changes. It shows a bowl of fruit rendered as SVG circles and text labels, where apples and lemons are added, removed, and modified over time. The code uses `selection.enter()`, `selection.merge()`, and `selection.exit()` to manage entering and exiting elements, with `d3.scaleOrdinal` mapping fruit types to colors and radii. A timed sequence updates the data array, triggering re-renders that add, replace, or remove fruit items.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b8a243e87dbf47b094ffefc55ff3c180?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}