{"version":"1.0","type":"rich","title":"D3 Starter - General update pattern Nest","description":"This example demonstrates the D3 general update pattern for data-bound SVG elements, using a fruit bowl metaphor to show how enter, update, and exit selections handle changing data. The code uses `d3.scaleOrdinal` to map fruit types (`apple`, `lemon`) to colors and radii, with each fruit’s position derived from its index. Over timed intervals, `setTimeout` triggers removal of apples, mutation of one apple to a lemon, and filtering of another fruit, while the `fruitBowl` function merges `enter` and `update` selections and applies transitions to exit circles. Rendering is SVG-based, with text labels showing fruit types.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8826fb55f6cb447cbd4c7f840cd6efb6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}