{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3, showing how to handle data joins with special cases for entering, updating, and exiting elements. A bowl of fruit animates through sequential changes: apples appear, one is eaten, an apple transforms into a lemon, and another apple disappears. Using d3.select, data joins, and the enter/merge/exit methods, the code updates SVG circles and text elements representing each fruit. The example uses d3.range to generate initial data and a sequential setTimeout timeline to trigger state changes, with scales for color and radius mapping fruit types.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a3984034a7074f9198dbf9166e2a2211?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}