{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"A bowl of fruit demonstrates D3’s general update pattern with a live SVG scene where apples and lemons appear and disappear over timed intervals. The code uses `d3.scaleOrdinal` for color and radius mapping, and `selection.enter`, `merge`, and `exit` to handle data joins. Circles and text labels render inside SVG groups, repositioned via `transform` attributes based on array index. The example cycles through mutations—removing fruits, swapping an apple for a lemon—through `setTimeout` calls triggering re-renders.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1af0589292624e8790c368fea1c472c1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}