{"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 several special cases, using a row of fruit in a bowl that changes over time. It shows how to handle entering elements (adding fruit), exiting elements (removing them), and updating existing ones (changing an apple to a lemon). The code uses D3 v5 with `selection.enter`, `selection.merge`, and `selection.exit` to bind data to SVG groups, while `scaleOrdinal` maps fruit types to color and size. A `setTimeout` sequence drives the temporal changes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fadc27be44da4633bdcc4e34771e8257?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}