{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern with special cases, showing a bowl of fruit where apples are added, removed, and replaced by lemons over time. Using D3 v5 with SVG rendering, the code employs data joins with key functions to track fruit identities, handling enter, update, and exit selections. Ordinal scales map fruit types to colors and radii, while click events select individual fruits with a highlighted stroke. The bowl itself is a static rectangle, and the animation sequence reveals how D3’s selection.merge and exit methods manage dynamic data changes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/eba7dc62d17c4986990db672b8102f5e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}