{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3 for managing dynamic data. It renders a bowl of fruit as SVG circles, where apples and lemons are represented by different colors and sizes. The visualization animates through a sequence of state changes: removing an apple, replacing one apple with a lemon, and filtering out another. The code uses `selection.enter()`, `selection.merge()`, and `selection.exit()` to handle data joins, along with D3’s `scaleOrdinal` for color and radius mappings. User clicks select a fruit, which receives a black stroke.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/688c100235ce49af978aa5d502ee3cf9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}