{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern - Nested Object","description":"A bowl of fruit demonstrates the general update pattern with nested selections in D3 v6. Apples and lemons are rendered as SVG circles in a bowl, with color and radius determined by fruit type via `scaleOrdinal`. The example shows how entering, updating, and exiting elements are handled through `selection.merge`, `groups.exit().remove()`, and re-bound data arrays. Timed transitions remove fruits, replace an apple with a lemon, and filter an element, illustrating how nested object data with unique IDs drives stable updates.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b751d5bbf85b4959b1d205b12b98ae92?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}