{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the D3 general update pattern with special cases, animating a bowl of fruit where apples and lemons are added, removed, and substituted over time. It shows how to handle entering, updating, and exiting SVG elements using `selection.enter()`, `selection.merge()`, and `selection.exit()`. The code uses `d3.scaleOrdinal` for color and radius mapping, and SVG `circle` and `text` elements rendered within groups, with data-driven transforms positioning each fruit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a7f243dc33564c719eeb437df6c8b02e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}