{"version":"1.0","type":"rich","title":"Bowl of fruits - Gral. update pattern","description":"This example demonstrates the D3 general update pattern for animating changes to a data set. A bowl of five apples is rendered as circles; over time, fruits are removed, and one apple is replaced by a lemon, with circles and text labels updating accordingly. The animation uses D3's `.transition()` method to interpolate the circle's `cx` and `r` attributes over one second. The code employs `d3.scaleOrdinal` for color and radius scales, and the `data()` method with key functions to manage entering, updating, and exiting elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fd6a97a679c249e28b42c3cbde59d1cc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}