{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"A bowl of fruit demonstrates the general update pattern in D3, showing how data joins handle entering, updating, and exiting elements. Five apple circles appear initially, then an apple is removed, a lemon replaces an apple, and another apple is filtered out. The code uses `d3.scaleOrdinal` for color and radius mappings, `selection.enter()` and `.merge()` for updates, and `selection.exit().remove()` for removals, all rendered as SVG circles in an HTML page with D3 v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/767350b6b52148359bb651d1e4b94abf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}