{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"Five circles represent a bowl of fruit whose contents change over time: apples shrink and vanish when eaten, and one apple transforms into a lemon. The example demonstrates the D3 general update pattern, using `selectAll` with a key function on `d.id` to track entering, updating, and exiting elements. Each circle's radius transitions to zero on exit, while new and updated fruits animate their radius and color via `transition().duration(1000)`. The code leverages `scaleOrdinal` for fruit type to color and radius mappings, with SVG rendered through d3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/afded048be674f149fad312bac0e670f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}