{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates special cases of D3’s general update pattern for animated transitions in SVG. It shows a bowl of fruit where apples are initially added, then removed, one apple is replaced with a lemon, and another apple is deleted, with each change re-rendering the scene. The code uses `d3.select` and `d3.range` to manage the data, while custom functions `groupsEnter.merge(groups)` and `groups.exit().remove()` handle enter, update, and exit states. Ordinal scales (`scaleOrdinal`) map fruit types to radii and fill colors, with `rect` and `circle` elements drawn via SVG attributes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3ac13bcd283c4add80e2091931d02651?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}