{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the \"general update pattern\" with special cases, showing how a bowl of fruit (initially all apples) transitions to a mix of apples and lemons. The SVG visualization uses D3 v5 to render circles and text labels for each fruit, with a static bowl rectangle in the background. The code employs `scaleOrdinal` for color and radius mapping, and uses selection methods like `groupsEnter.merge(groups)` and `groups.exit()` to handle updates efficiently. Initial apples are placed using `range` and `append`, while the fruit bowl logic manages the dynamic transition.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/90cd5cfff0ba4b07abbbbc49c25020d5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}