{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for handling data changes, showing a bowl of fruit that evolves as apples are eaten and replaced by a lemon. The code uses `d3.scaleOrdinal` for color and radius mapping, and explicitly manages enter, update, and exit selections with `selection.enter()`, `selection.merge()`, and `selection.exit().remove()`. Rendered as SVG, the visualization animates through four timed transitions via `setTimeout`, modifying the underlying data array and re-calling the `fruitBowl` render function.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/53b7305b857e43d1bb764ed73ae7bfc3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}