{"version":"1.0","type":"rich","title":"Bowl of fruit general update pattern","description":"This example demonstrates the general update pattern for data joins in D3 v5, showing how a bowl of fruit responds to dynamic changes in an array. The visualization renders apples, lemons, and grapefruits as circles with distinct radii and colors, using `scaleOrdinal` for both color and radius mappings. As the data changes through timed events—removing fruits, swapping an apple for a lemon, and adding a grapefruit—the SVG elements transition smoothly over 1000 milliseconds. The code uses D3's `selectAll`, `data`, `enter`, `merge`, and `exit` methods within a React framework, with a bowl drawn as a rectangle behind the fruit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2e0243cda04c402ebfe7ae3a82dcf5da?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}