{"version":"1.0","type":"rich","title":"D3 Starter - General update pattern Modular way with Bowl","description":"This example demonstrates the general update pattern in D3 using a modular function `fruitBowl` that renders a bowl with fruit circles. It shows how enter, update, and exit transitions handle dynamic data changes, animating fruits in and out as apples are consumed and one apple becomes a lemon. The code uses d3's `scaleOrdinal` for color and radius mapping, `selectAll`, `enter`, `merge`, and `exit` methods with `.transition()` for smooth animations. Data is generated with `range` and `Math.random()` IDs, rendered as SVG elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/40fe984d63e04bcc9b00effa6e3e4d88?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}