{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern (Before Animation)","description":"This example demonstrates the general update pattern in D3 before applying animation, showing how data changes—removing an apple and changing another to a lemon—update SVG circles. The visualization uses D3 v5’s `selectAll`, `data`, `enter`, `merge`, and `exit` to handle circle creation, updates, and removal. Fruits are represented as circles with ordinal scales for color (`scaleOrdinal`) and radius, mapping apple to red and lemon to yellow. The initial state renders five apples, then a pop after one second removes one, and a type change after two seconds alters a circle’s appearance.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2d0428ede11845d3924cdffbf41ba8c1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}