{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates D3’s general update pattern by animating a bowl of fruit through timed state changes. Apples are removed, replaced with lemons, or filtered out, with D3’s data join (`selection.data`, `enter`, `merge`, `exit`) updating SVG circles and text accordingly. The code uses `scaleOrdinal` for color and radius mapping, and `selection.attr` for positioning, rendering entirely as SVG. Each fruit’s identity is tracked via a random `id`, ensuring stable element binding across updates.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2a8720babc384d57ac744b611d127a7f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}