{"version":"1.0","type":"rich","title":"Bowl of Fruit - Nested Elements_Singular Elements","description":"A bowl of fruit demonstrates nested SVG elements with singular data joins. Five apples render as red circles inside a rounded rectangle bowl, each group containing a circle and a text label. Over time, the dataset shrinks, one apple changes into a yellow lemon, and another apple is removed. Using `d3.scaleOrdinal` for color and radius, the code performs enter, update, and exit selections via `selection.enter()`, `merge()`, and `exit().remove()` to transition the fruit groups dynamically. The example shows how to manage hierarchical SVG structures with D3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d11000e639ef4277b390ec723afb525a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}