{"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 dynamic data in D3.js, using a bowl of fruit as a visual metaphor. It shows how the chart reacts to changes in a fruit array over time: five apples appear initially, one is removed, one apple changes to a lemon, and another apple is filtered out. The code uses D3’s selection API, including `select`, `selectAll`, `enter`, `merge`, and `exit`, to update SVG elements. It also leverages ordinal and linear scales from D3 to map fruit types to colors and radii.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9bce836586c6400e95ab1fda6db3aa69?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}