{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3.js by animating a bowl of fruit through several state changes: removing apples, replacing one with a lemon, and filtering another. It shows how enter, update, and exit selections handle circles and text elements across these transitions. The code uses D3 v5 with `scaleOrdinal` for colors and radii, plus selection methods like `.merge()` and `.exit().remove()`. Rendered as SVG, the fruit bowl visualizes state changes through a timed sequence of data mutations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/83fd2471638d4338bb1c579f9c4e7b70?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}