{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3 for animating changes to a dataset. It shows a row of circles representing fruit, starting with five apples, then removing one, swapping an apple for a lemon, and removing another. The visualization uses d3.v5 to bind data to SVG circle elements, with enter, update, and exit selections to handle additions, modifications, and deletions. The `fruitBowl` function explicitly uses `.enter().append()`, `.merge()`, and `.exit().remove()` to manage the lifecycle of each circle, and uses `scaleOrdinal` to map fruit types to colors and radii.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a34090f0590341a0bb60c2515b56ec4a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}