{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"Bowl of Fruit demonstrates the D3 general update pattern with special cases for enter, update, and exit selections. The visualization shows a row of fruit shapes that change over time—apples are bought, eaten, and replaced with lemons—using SVG circles and text labels. The code employs `scaleOrdinal` for both color and radius mappings, `selection.merge()`, and `selection.exit().remove()` to handle dynamic data transitions. Timed `setTimeout` calls trigger sequential data mutations, rendering each state through the reusable `fruitBowl` function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1eb1dcb06feb4df8ba0551afb07d40b3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}