{"version":"1.0","type":"rich","title":"Selecting a Year on a Line Chart","description":"This line chart displays population trends over time for world regions, with a visual selection mechanism for a specific year (2019). The visualization uses D3 v5 to render an SVG, loading data from UN population estimates CSV files. The code employs `d3.nest()` to group data by region, `d3.scaleTime` and `d3.scaleLinear` for axes, and a custom color legend built with `d3-selection`. A `parseYear` function converts year values, while the chart updates interactively when a new year is selected.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/aadd4d04f806473795d76d4af87eab7f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}