{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"A bowl of fruit demonstrates the D3 general update pattern, showing how a visualization can add, remove, and modify data points. Five apples initially appear in a grey bowl; sequentially, an apple is removed, an apple changes into a lemon, and another apple is deleted. The code uses D3 v5 with a scaleOrdinal color and radius mapping, and employs selection merging via `.merge()` in the `fruitBowl` function to handle entering, updating, and exiting elements in the SVG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/39892d8d95224767b584ba495c950bfe?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}