{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for data mutations. A bowl of apples changes over time as fruits are eaten and replaced with lemons, showing how the visualization handles removal, modification, and filtering of data elements. The code uses `d3.select`, `d3.range`, and custom ordinal scales for color and radius, rendering SVG circles and text. The update logic in `fruitBowl` manages enter, update, and exit states through `selection.selectAll`, `.merge`, and `.exit().remove()` operations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/aa76fe2a90aa4107a0b0b1fa690d1e64?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}