{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"A bowl of fruit demonstrates D3's general update pattern with special cases, showing apples and lemons as colored circles that appear, disappear, and change type over time. Using `d3.scaleOrdinal` for color and radius, the code binds fruit data to SVG `g` elements, merging entering and updating selections with `.merge()` and removing exits with `.exit().remove()`. Timed `setTimeout` calls trigger updates: removing the last apple, replacing one apple with a lemon, and filtering out a middle fruit. The example renders in an SVG container with a rounded rectangle bowl drawn via `rect` attributes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a75be2f98cd44e7ca0be53864ac90593?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}