{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"Five pieces of fruit sit in a drawn bowl, rendered as SVG circles with labels. The example demonstrates the D3 general update pattern: entering, updating, and exiting selections manage changes to the fruit array over time, as apples are eaten and one apple is replaced by a lemon. The code uses `selection.enter()`, `selection.merge()`, and `selection.exit()` to handle dynamic data, with `d3.scaleOrdinal` mapping fruit types to colors and radii. Updates occur via `setTimeout` calls that modify the fruit data and re-render.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f2ee56773031470e9cd7a756acfe9f80?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}