{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This visualization demonstrates the general update pattern in D3, showing how a data-driven SVG scene responds to changes in an array of fruit objects. Initially, five red apples appear in a row, and the example sequentially removes items, mutates an object's type from apple to lemon, and filters out another element, with each change triggering a re-render via a custom `fruitBowl` function. The code uses D3's `select`, `range`, and `scaleOrdinal` to map fruit types to colors and radii, while `enter()` and `exit()` methods handle the creation and removal of circles.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d14b1b90aaf745daba7342e35fd05148?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}