{"version":"1.0","type":"rich","title":"D3 General Update Pattern (Object Constancy)","description":"Five apples appear in a row, then the visualization animates through data changes while maintaining object constancy by keying each circle to a stable `id`. D3’s general update pattern merges entering, updating, and exiting selections, using `transition().duration(1000)` to grow new circles from radius zero, shrink removed ones, and smoothly reposition elements. The `fruitBowl` function applies ordinal color and radius scales to distinguish apples from lemons, while `setTimeout` calls trigger pop, type-swap, and filter operations on the fruit array.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2f7670640a5c464aac357a582d931b2f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}