{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 v5, showing how to handle special cases when adding, removing, and modifying data-bound elements. It visualizes a bowl of fruit where apples and lemons are represented by colored circles, with SVG `<circle>` and `<text>` elements updated through `selection.merge` and `selection.exit`. The code uses `d3.scaleOrdinal` for color and radius mapping, and triggers three sequential updates via `setTimeout`: removing a fruit, changing an apple to a lemon, and filtering out another fruit.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7063eb5fdccb4498809a6b558e8ad7b7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}