{"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.js, showing how data joins handle entering, updating, and exiting elements as a fruit bowl changes over time. Five apples are rendered initially, then an apple is removed, another is replaced by a lemon, and a second apple is deleted. The code uses `selection.data()`, `.enter()`, `.merge()`, and `.exit()` with `transition()` to animate position changes and radius adjustments, while scaleOrdinal maps fruit types to colors and sizes. SVG circles and text labels update accordingly, with exiting elements fading out through a transformed transition before removal.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e91da4144ff74cdba8ba4c81b8fc85eb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}