{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"A bowl of fruit demonstrates the general update pattern's special cases in D3 v5, showing how data joins handle adding, removing, and modifying elements. The visualization updates five apples over time: an apple disappears, another becomes a lemon, and a third is filtered out. Using SVG, the code employs `selection.enter()`, `selection.merge()`, and `selection.exit()` to manage circles and text, with `scaleOrdinal` for color and radius mapping. The `fruitBowl` function binds fruit data to groups, updating their transforms and attributes automatically.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5146bef1c06440c8a3ed8f6ecf8795f2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}