{"version":"1.0","type":"rich","title":"general update pattern - bowl of fruit with text","description":"A bowl of fruit demonstrates the D3 general update pattern, showing five apples that become one lemon while circles and text labels update together in SVG. The code uses `select`, `range`, and `scaleOrdinal` from D3 v5 to map fruit types to colors and radii, with `fruitBowl` as a local ES6 module handling enter, update, and exit selections. The single lemon replaces an apple at index 2, and the visualization re-renders with layered transitions on both shapes and text.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/35dd95ddd64c4adf8d9781feca13bc11?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}