{"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: replacing a node's type, removing a node from the middle, and exiting nodes shrinking to zero size before disappearing. Rendering as animated SVG, it uses D3's `scaleOrdinal` for color and radius mappings, plus `transition().duration()` to animate enter, update, and exit states. The code manually merges entering and existing groups using `.merge()` and applies concurrent transitions to `circle` radii, fill colors, and text opacity.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d0138f11591340db88272f872d675192?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}