Skip to main content
100%

Selecting a year on a line chart

✓ Published0🌍 Public
TThomas Seberechts
Last edited Jun 9, 2020
Created on Jun 9, 2020

This visualization shows global population trends by region from 1950 to 2100 as a multi-line chart. Users can hover over the chart to select a specific year, which triggers a vertical guide line and updates the highlighted data point. The implementation uses D3 v5 with SVG rendering, leveraging `d3.nest` for data aggregation and `d3.scaleTime` for the time axis. Population data comes from UN estimates and medium-variant projections, processed through a custom melt function, while the interactive year selection relies on mouse events and `d3.mouse` positioning.

AI-generated description
MIT Licensed

Similar vizzes