{"version":"1.0","type":"rich","title":"Bowl of Fruit General Update Pattern","description":"A bowl of fruit visualizes a dynamic dataset of apples and lemons as circles inside a grey bowl, with each fruit's type encoded by color and radius using D3's `scaleOrdinal`. The example demonstrates D3's general update pattern, where `selection.selectAll` and `.merge()` handle entering, updating, and exiting elements as the fruit array changes over time. Through timed `setTimeout` calls, the code removes fruit, swaps an apple for a lemon, and filters the array, animating the SVG circles and labels to reflect the data mutations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d269fa82325147eca89a662f3639d2fe?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}