{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates D3’s general update pattern with special cases for entering, updating, and exiting elements in a fruit bowl visualization. Five apples appear initially; one is removed, another is replaced by a lemon, and a third apple is deleted, showing how `selection.join` handles groups via `enter`, `merge`, and `exit`. The code uses `d3.scaleOrdinal` for colors and radii, and appends SVG `rect`, `circle`, and `text` elements. Data is plain JavaScript objects, with updates triggered by `setTimeout` calls.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/05ea085b2f5441739a9bcb1d59e54428?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}