{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern for SVG elements in D3 v5, showing how to handle special cases like creating, updating, and removing data points in a static visualization. A bowl of fruit changes over time as apples are eaten or replaced with lemons, with each fruit rendered as a circle and text label. The code uses D3's `selectAll` and `merge` methods to reconcile entering, updating, and exiting elements, while `scaleOrdinal` maps fruit types to colors and radii. The SVG view updates at timed intervals to reflect the changing array of fruit objects.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ec5b752a66fa4f4a9001db10504414db?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}