{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern for data joins in D3, showing how to add, remove, and modify fruit shapes rendered as SVG circles and text labels in a bowl. The code uses `selection.enter()` and `selection.exit()` to handle new and removed data points, while merging entered and updated selections for styling. It relies on `d3.scaleOrdinal` for both color and radius scales, mapping apple and lemon types to distinct visual properties. The animation sequence, driven by `setTimeout`, initially renders five apples, then removes one, replaces another with a lemon, and filters out an additional apple.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/32e9b0e66fe040a6be5c03bc3ab33cdd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}