{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"A bowl of fruit demonstrates D3’s general update pattern for entering, updating, and exiting SVG elements. Apples and lemons are drawn as colored circles with labels, and the bowl is a rounded rectangle. The code uses `d3.range` and `select` for data generation, `scaleOrdinal` for color and radius, and `merge` with `exit().remove()` to handle dynamic changes. Over time, fruits are removed or replaced via `setTimeout`, visually updating the bowl with smooth transitions in position and appearance. The example renders static SVG with no animation tweens.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f76663bc454848058cc8b25fa174fb0f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}