{"version":"1.0","type":"rich","title":"D3 Course 5: General Update Pattern Part 1","description":"This example demonstrates the D3 General Update Pattern for smoothly adding, updating, and removing SVG circles. Fruits (apples and lemons) are bound to data using a key function, with new elements entering at radius zero and exiting elements shrinking before removal. Animated transitions of 1000 milliseconds adjust circle positions and radii while the `merge` method updates existing elements. The code uses `d3.select`, `d3.range`, `scaleOrdinal`, and `transition.attr` to manage state changes triggered by `setTimeout` events.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b2eae420410046a3b537cfd698be0c94?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}