{"version":"1.0","type":"rich","title":"Bowl Fruits General Updates Pattern","description":"This example demonstrates the General Update Pattern in D3 v5, showing how a bowl of fruits—apples and lemons—changes over time through enter, update, and exit selections. Circles animate in with a radius transition, update their fill color and size based on fruit type, and animate out when removed. The `d3.scaleOrdinal` maps fruit types to colors and radii, while mouseover and mouseout events highlight the selected fruit with a teal stroke via `setSelectedFruit`. Animated transitions use `transition().duration()` with SVG circles.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8c89e5ed31784d27bcad649a4ea5b583?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}