{"version":"1.0","type":"rich","title":"General Update Pattern --","description":"This example demonstrates the general update pattern in D3 by animating a fruit bowl over time. Apples and lemons are drawn as scaled circles, with colors and radii mapped via `scaleOrdinal`. A sequence of timeouts triggers state changes—removing fruits, replacing an apple with a lemon—and re-renders the SVG. The code uses `selection.selectAll`, `.enter()`, `.merge()`, and `.exit()` to handle the incremental updates.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1e5bc7ce69404b1ba1b15e5940d46a2e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}