{"version":"1.0","type":"rich","title":"Nested elements with transitions (exercise)","description":"A row of apples is rendered as nested SVG circles and text labels. Over time, the sequence changes through timed simulation events: an apple is removed, another is replaced with a lemon, and a third apple is deleted. The example demonstrates d3's `select` and `merge` API for updating nested elements, with a `transition().duration(1000)` animating the circle fill and radius changes according to the fruit type, while text labels update instantly.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/89f9c8e432b843c88eb51aedfb1505a6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}