{"version":"1.0","type":"rich","title":"General Update Pattern 1","description":"A fruit bowl updates smoothly as apples are eaten and one turns into a lemon, demonstrating D3’s general update pattern. Using `selection.data` with a key function, `enter`, `merge`, and `exit`, the code joins fruit data to SVG circles and text. Transitions animate radius and x-position changes over 1000ms, while a `d3.scaleOrdinal` maps fruit types to colors and sizes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1e9885d9f26747dc9c0fd68f1c6b25c7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}