{"version":"1.0","type":"rich","title":"Enter, Update, Exit","description":"The example demonstrates D3's enter, update, and exit selections for data-driven SVG rendering. It generates random scatterplot points and binds them to circles and text labels using an `id` key, visually encoding state changes in blue (new points), green (updated positions), and red (points being removed). The code uses `selection.enter()`, `selection.exit()`, and `transition.attrTween` to animate point placement and opacity over one second. A table below synchronizes with the same data join, and a button triggers new random datasets.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e6c19bcc06abc8bd4aecff84cc1635bb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}