{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Upate Pattern","description":"This example demonstrates the D3 general update pattern for animated data changes, using SVG circles to represent fruits in a bowl. It shows how entering, updating, and exiting elements are handled with smooth transitions. The code uses `selectAll('circle')`, `.data()`, `.enter()`, `.merge()`, and `.exit()` to manage the lifecycle, animating radius and fill with `transition().duration(1000)`. Data mutations like `fruits.pop()`, type changes, and filtering trigger renders that shift positions and colors via ordinal color and radius scales.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b4cc061985d547f5b761c34cdad8f3f0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}