{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"This example demonstrates the general update pattern for data joins, showing how fruits enter, update, and exit as the dataset changes over time. A bowl of apples and lemons is rendered as color-coded circles with differing radii, and users see animations as apples are eaten or replaced. The code uses D3 v5’s `selectAll` with key functions, `.enter()`, `.merge()`, and `.exit()` to manage transitions, along with `scaleOrdinal` for color and size. The SVG is drawn in React and animated via `.transition().duration(1000)`, updating circle positions and radii.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2b166db0fde749829b0af00d50f1d749?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}