Fork of Fork of Selecting a Year on a Line Chart
✓ Published1🌍 Public
This interactive line chart shows United Nations population estimates and projections for world regions from 1950 to 2100. Users can move the mouse across the chart to select a year, triggering a vertical line to update and re-render the visualization. Built with D3 v5, the code uses `d3.nest` to group data by region, `d3.line` with `curveBasis` for smoothed paths, and scales like `scaleTime` and `scaleLinear`. The data is loaded from two CSV files via `d3.csv` and processed with custom melting logic.
AI-generated descriptionMIT Licensed