{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for enter, update, and exit selections. It shows a bowl of fruit where apples are added, removed, and replaced with lemons over time using `setTimeout` calls. The visualization renders SVG circles and text labels for each fruit, with colors and radii mapped via `scaleOrdinal`. The code uses D3 v5 selections, `.merge()` for combining enter and update groups, `.exit().remove()` for deletions, and dynamic data binding to track state changes across transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cd19aba2b8a34a1baa7f0f0349d66e48?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}