{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern in D3, showing how to handle data changes smoothly. A bowl of fruit is rendered as SVG circles with text labels, using a React-based structure with D3 v5. The code uses `selectAll` and data joins—through `enter()`, `merge()`, and `exit()`—to update the visualization as fruits are removed or their types change. Fruit types are mapped to colors and radii via `scaleOrdinal`, and the bowl shape is drawn as a rounded rectangle with `rx` attributes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4d4cedb1cbfa4e538a763727309b3005?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}