{"version":"1.0","type":"rich","title":"Bowl of fruit - General Update Pattern","description":"This example demonstrates the D3 general update pattern using a bowl of fruit rendered with SVG shapes. Five apples appear initially, then the visualization updates twice: first removing two apples, then changing one apple to a lemon. The code uses `d3.scaleOrdinal` for color and radius scales, with enter, update, and exit selections managing circles and text elements. The fruit bowl is drawn as a rounded rectangle, and the update functions use `merge()` and `.exit().remove()` to handle data changes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1f826a5e4e284f3cbf73bdee0106694c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}