{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern for animating changes in a data-driven SVG visualization. It shows a bowl of fruit, initially containing five apples, which are then modified over time through a series of setTimeout operations: an apple is removed, one apple is replaced with a lemon, and another apple is deleted, illustrating enter, update, and exit transitions. The code uses D3 v5’s `select`, `range`, and `scaleOrdinal` APIs to map fruit types to circle colors and radii, with the `merge` method coordinating the incremental updates. The rendering approach is SVG, with circle positions fixed along the x-axis while their attributes (fill color, radius) and presence change dynamically.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c526d6f32c9543d0b2716fdfc1a12efb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}