{"version":"1.0","type":"rich","title":"bowl of fruit-general update pattern","description":"This example demonstrates the D3 general update pattern with a bowl of fruit that changes over time. Initially showing five red apples, the visualization removes a fruit after one second, changes one apple to a yellow lemon after two seconds, and filters out another fruit after three seconds. The code uses `d3.scaleOrdinal` for color and radius mapping, `selection.data()`, `.enter()`, `.merge()`, and `.exit()` to handle enter, update, and exit selections. SVG circles and text elements render the fruit with `d3.v5`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f2b8645f7eb04b7ab5ad85fec9215f5c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}