{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the general update pattern in D3 with special cases for enter, update, and exit selections. It shows a bowl of fruit where apples are eaten, replaced with lemons, and removed at timed intervals, using ordinal scales for color and radius based on fruit type. The code uses `d3.scaleOrdinal`, SVG circle and text elements, and merge operations to handle entering and updating nodes smoothly. Data is static in-memory JavaScript objects, rendered as styled SVG shapes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3508621142f6478c80eff0886237dfde?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}