{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates D3’s general update pattern for entering, updating, and exiting data joins. Animated over time, a bowl of fruit changes as apples are removed, a lemon replaces one apple, and another apple disappears, with circles and labels updating accordingly. The code uses `d3.scaleOrdinal` for color and radius encoding, `selection.merge` to handle entering and updating elements, and `selection.exit().remove()` for removal. The fruit bowl shape is an SVG rectangle with rounded corners.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a0affff1d5904fc0b370ac32bd4f48d4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}