{"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 for entering, updating, and exiting elements. It shows a bowl of fruit where apples are added, removed, and replaced with lemons over time, with transitions animating position and opacity changes. The code uses `d3.scaleOrdinal` for color and radius mappings, `selection.merge` for combining enter and update selections, and `transition.duration` for smooth animations. The visualization renders as SVG with circles and text labels inside a rounded rectangle bowl.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2ce03364331845d4952421d7190c8a22?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}