{"version":"1.0","type":"rich","title":"Selecting a year on a line chart","description":"This interactive line chart displays population trends over time for major world regions, with a vertical black line highlighting the year 2018 as a selected reference point. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, and `nest` to structure the data, while the `lineChart` function renders the lines with `curveBasis` smoothing. A color legend is generated via a custom `colorLegend` component, and population data comes from UN estimates and medium-variant projections loaded through `csv`. The chart employs SVG rendering with axis ticks and labels styled via CSS.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f758c460ebbe4c0c91c24776fc225439?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}