{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for data changes—removing, modifying, and reordering fruits in a bowl. It uses `d3.selectAll` and `d3.data` to bind an array of fruit objects to SVG groups, with `enter`, `merge`, and `exit` selections handling new, updated, and removed elements. The code creates circles and text labels, using `scaleOrdinal` for color and radius. Data transitions occur via `setTimeout` calls, showing how the visualization updates when fruits are eaten or replaced.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9f535836b9d74a7ab5fc208fb716c954?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}