{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern","description":"Five apples sit in a bowl rendered as a rounded rectangle. This example demonstrates the D3 general update pattern: when the data array changes, the visualization transitions smoothly. The code uses D3 v5's `select`, `range`, and `scaleOrdinal` to map fruit types to colors and radii. Apples are red and larger, while a lemon is yellow and smaller. The simulation uses `setTimeout` to trigger three updates: removing an apple, replacing one with a lemon, and filtering out another, showing how the SVG elements are entered, updated, and exited accordingly.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f9446816d3d349bb84404c34645ce2e5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}