{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern's special cases by showing a bowl of fruit that changes over time: apples are eaten, one apple is replaced with a lemon, and another apple is removed. Using D3 v5’s `selectAll`, `enter`, `merge`, and `exit` methods, the code updates SVG groups and shapes incrementally. Ordinal scales from `d3` map fruit types to colors and radii, while `setTimeout` triggers sequential state changes in the data array.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7dcce24f007545aea5b0e660dfca2129?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}