{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern for entering, updating, and exiting SVG elements in D3 v5. It uses `d3.scaleOrdinal` to map fruit types to color and radius values, while the `fruitBowl` function binds fruit data to groups containing circles and text labels. The code shows how `merge` combines enter and update selections to apply shared attribute updates, with separate handling for exit selections. A static bowl rectangle is drawn independently, and the initial render shows five apples positioned in a row.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8a3c0f0782df42059fde7b9515354b9d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}