{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3, visualizing a bowl of fruit that changes over time as apples are eaten and replaced with lemons. Using D3's `scaleOrdinal` for color and radius mapping, the SVG animation shows how elements enter, update, and exit with a smooth transition. The code executes timed updates via `setTimeout`, modifying the fruit array and re-rendering, while D3's selection merging (`merge`) and `.transition().duration(1000)` handle the visual transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9398991a00f84c55afbc0b8fa0eb082b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}