{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for enter, update, and exit transitions. A bowl of fruit is rendered as SVG circles and text labels, with apples and lemons distinguished by color and radius using `scaleOrdinal`. Users click to double the data values, triggering the update logic that repositions all text elements via `.attr(\"x\", ...)` and `.text()`. The visualization uses d3.select, d3.selectAll, and `.merge()` to handle overlapping enter and update selections, while `.exit().remove()` clears obsolete elements, showcasing the data join and lifecycle management.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/655ba91a061040d0b16d8f4e988b3230?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}