{"version":"1.0","type":"rich","title":"Smiley with D3.js","description":"This example demonstrates basic SVG rendering with D3.js by drawing a series of circles whose positions and colors update dynamically with changing data arrays. The code uses D3 selections and the `data()` join to append circle elements, mapping each value to a vertical position (`cy`) and a red or blue fill depending on whether the value exceeds 30. It highlights the enter selection pattern by calling `updateVis` twice with different datasets, showing how new circles are added incrementally. The visualization relies on D3 v3’s core selection API and standard SVG attributes within a 960x500 canvas.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/53150ee790d645c7b6a9a167f42d8dc6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}