{"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 enter, update, and exit selections, using a bowl of fruit metaphor to show how data changes animate smoothly. Apples and lemons are rendered as circles with distinct colors and radii, positioned in a row inside a rectangular bowl. The code imports `scaleOrdinal` for color and radius mappings, uses `selection.merge` to handle updates, and applies `transition().duration(1000)` to animate radius changes. Data mutations—adding, removing, or altering fruit types—are triggered by `setTimeout` in the main script, with SVG elements and text labels updating accordingly.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/27e5dcd9da9440f9ad9c4d0d407ca999?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}