{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3, where data joins manage the entering, updating, and exiting of SVG circles that represent fruits in a bowl. It shows three sequential transitions: removing an apple, changing an apple to a lemon, and filtering out another apple. The code uses `selection.data()`, `.enter()`, `.merge()`, and `.exit()` within a custom `fruitBowl` function, applying ordinal scales for fruit color and radius. A `setTimeout` chain triggers each update, making the pattern of data-driven DOM changes explicit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3190507e36b9409494c5044671a35849?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}