{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"A bowl of fruit demonstrates the General Update Pattern with special cases in D3 v5 within a React framework. The visualization shows five apples that are eaten, replaced with a lemon, and filtered over time, updating SVG circles and text elements via `selection.data()`, `enter()`, `merge()`, and `exit()`. It uses `d3.scaleOrdinal` for color and radius mappings based on fruit type, with a static bowl rectangle. The code explicitly handles empty data arrays and in-place type mutations without explicit key functions, relying on index-based binding.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/61ece9f38c734993bbbf07b64d6d5b53?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}