{"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, showing how data joins handle enter, update, and exit transitions for a bowl of fruit. It illustrates special cases by using two ordinal scales (colorScale and radiusScale) from d3-scale to map fruit types to visual properties. The code runs through a sequence of timed updates using setTimeout: buying five apples, eating one, replacing one with a lemon, and removing another. SVG circles and text elements are bound to fruit objects, with the bowl rendered as a stationary rectangle. The example uses d3-selection for joins and merges, with D3 v5 loaded via CDN.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e46835ac06c54f728bbbc8df65c1f6ff?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}