{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates D3’s general update pattern for binding data to SVG groups. Five apples are initially rendered, then one is removed, one apple changes to a lemon, and another is removed, with each transition updating the circles and text labels. The code uses `selection.data()`, `enter()`, `merge()`, and `exit()` to manage the joins, with `scaleOrdinal` mapping fruit types to colors and radii under d3.v5.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/59d1c0b5c8934990bb1b5fc0214c8b71?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}