{"version":"1.0","type":"rich","title":"Fork of Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern for data joins in D3, showing how enter, update, and exit selections handle changing fruit data. A row of apples is rendered as SVG circles and text labels, then modified through three timed transitions: an apple is removed, an apple changes into a lemon, and another apple is eaten. The code uses d3-selection’s `data()`, `enter()`, `merge()`, and `exit()` methods, along with `selection.transition()` for smooth updates. It relies on ordinal scales for color and radius mapping, and the data is hardcoded as JavaScript objects in `d3.range()`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3cab716e83eb4352b2975e596cd4baaa?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}