{"version":"1.0","type":"rich","title":"Bowl of Fruit - Greneral Update Pattern Part2","description":"This example demonstrates a general update pattern for animated data visualizations, showing a bowl of fruit where apples are eaten or replaced by lemons over time. Circles represent individual fruit items, with color and radius encoding fruit type, while a D3.js v5 transition smoothly animates position and size changes. The code uses `select`, `scaleOrdinal`, and the `.transition().duration()` API from D3.js to handle enter, update, and exit states, with `Math.random()` generating unique IDs for each fruit. The visualization renders as SVG with a 1000-millisecond animation duration.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6cfb4cbe89f94dd6a7dc3a1fba765c67?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}