{"version":"1.0","type":"rich","title":"General Update Pattern","description":"A smiling face rendered in SVG changes expression over time: apples shrink, a lemon appears, and eyebrows disappear as data updates. This example demonstrates the general update pattern with D3 v5, using `selection.data`, `enter`, `merge`, and `exit` to handle entering, updating, and removing circles. The code maps fruit types to colors and radii via `scaleOrdinal`, and `setTimeout` triggers three sequential re-renders to show state transitions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c5d69c6e4b084b46903de83efc50711f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}