{"version":"1.0","type":"rich","title":"Fork of updatePattern","description":"This example demonstrates a data join update pattern for a fruit bowl visualization. It shows how to add, remove, and update SVG elements when the underlying array of fruit objects changes. The code uses D3 v5 with `select`, `range`, and `scaleOrdinal` to map apple and lemon types to colors and radii. Three timed updates modify the fruit array, triggering re-renders that add or remove circles and text labels. The implementation uses enter, merge, and exit selections to handle transitions dynamically.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/97be00e5493343c7b106fbda909cf4f2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}