{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern for data joins, showing a bowl of fruit that changes as apples are eaten or replaced by lemons. Using D3 v5 with SVG and animation, it applies `selection.enter`, `selection.merge`, and `selection.exit` to handle dynamic data arrays. The code uses `scaleOrdinal` for color and radius, and `transition().duration()` to animate circles shrinking to zero on exit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ce6a801867be4087b0f28fbb5771a5f4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}