Selecting a year on a line chart
✓ Published0🌍 Public
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.
AI-generated descriptionMIT Licensed