{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern nested elements","description":"A bowl of fruit demonstrates D3’s general update pattern with nested SVG elements, animating apples and lemons as data changes. Circles and labels enter, update, and exit via chained transitions, using `selection.merge()` to combine enter and update sets. The code applies `scaleOrdinal` for color and radius, keying elements by `d.id`, and shrinks exiting circles to zero before removing them.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cf461a22adba4d7aa2273240df27da45?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}