{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This visualization demonstrates how the general update pattern in D3 handles special cases of data changes, showing fruit types in a bowl. It uses the D3 v5 library and SVG rendering. The code defines color and radius scales via `scaleOrdinal` for apples and lemons, and manages enter, update, and exit transitions for groups. Data arrays containing numbers control the fruit positions, while circles and text are merged and updated to reflect the current dataset.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/be19675f5e744777977b0900d63f18c1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}