{"version":"1.0","type":"rich","title":"TM","description":"This visualization presents a nested-rectangle chart built with D3 v6, where each fruit type (apple or lemon) is rendered as a group containing a circle, text label, and a variable number of stacked rectangles. The number of rectangles per group is determined by each fruit's \"num\" property, while their width scales according to the fruit type via a d3.scaleOrdinal color and radius scale. The example demonstrates a nested General Update Pattern, using `selection.each` to isolate each group’s DOM node and apply an independent data join, allowing rectangle counts and sizes to update dynamically as fruits are added, eaten, or replaced.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7fb7fc5f6437419ab0cdeb9188a35fcd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}