{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the D3.js general update pattern with an animated bowl of fruit, showing apples and lemons as circles with color-coded fills. The code uses `selection.data()`, `selection.enter()`, and `selection.exit()` to manage joining data to SVG elements, with `transition().duration(500)` animating circle radii and text positions on updates. A `scaleOrdinal` maps fruit types to colors and sizes, while timed `setTimeout` calls trigger sequential data mutations—removing items, changing types, and adding fruits—to illustrate enter, update, and exit transitions. The rendering relies on D3 v5 within a React framework, using SVG and explicit animation transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4938de56e0864ed396aa4f40b9f1bf62?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}