{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3.js using a bowl of fruit visualized as SVG circles and text labels. It shows three special cases: removing the last item, updating an existing item’s properties, and filtering out a middle element. The code uses d3.scaleOrdinal for color and radius mapping, selection.enter(), .merge(), and .exit() to handle joins, with a rect drawn to represent the bowl. A timed sequence of setTimeout calls triggers each state change.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3a706195d3674b6c96ac3d282a87a3cd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}