{"version":"1.0","type":"rich","title":"Bowl of Fruit- General Update Pattern with singular elements","description":"A bowl of fruit demonstrates the D3 general update pattern for data joins that change over time. The visualization renders apples and lemons as colored circles with a text label, positioned in a row above an SVG bowl shape. The code uses `selection.data()`, `selection.enter()`, and `selection.exit()` to handle updates, with the `fruitsBowl` function managing enter and exit selections. As timeouts modify the fruit array, elements are added, removed, or updated, showing how D3 v6's `merge()` handles singular elements. The example uses `scaleOrdinal` for color and radius mapping.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/0f4ee2edccd84c718e2570e66751101c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}