{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the D3 general update pattern, showing how fruit in a bowl transitions between states: apples disappear, an apple changes to a lemon, and another apple is removed. It renders SVG circles and text labels inside a rounded rectangle, using `scaleOrdinal` for color and radius mappings. The code uses `selection.data()`, `.enter()`, `.merge()`, and `.exit()` with `transition().duration(1000)` to animate entering, updating, and exiting elements, including shrinking exit circles to zero radius before removal.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b4dbfd3ab3ad4e1285e8733121e5c8fc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}