{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the General Update Pattern in D3 v5, showing how to add and remove circles representing fruit from a bowl. Users click buttons to push or pop apples from an array, and the visualization updates accordingly. The code uses `selection.data()`, `enter()`, `exit()`, and `merge()` to handle entering and exiting elements, while a separate `fruitBowl` module creates the bowl shape and fruit groups with `scaleOrdinal` for color and radius. The rendering uses SVG with animated transitions between states.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/51f31a065f5e4608b95b30b9584914a2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}