{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"A bowl of fruit animates through D3’s general update pattern, showing how to add, remove, and modify SVG circles and text via enter, update, and exit selections. The example demonstrates special cases like exiting elements shrinking via a `transition().duration(1000).attr('r', 0)` before removal, and updating an existing fruit’s type in place. It uses `d3.scaleOrdinal` for color and radius mapping, with data generated via `Math.random` for IDs. Rendered as SVG and animated with D3 transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0faecfde484f4bb0adb902a895cf1059?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}