Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Selecting a Year on a Line Chart

Public visualization

Viewing a saved revision (read-only)

04ef60a40cfc4450a0e1ddb7219c3754

Fork of Selecting a Year on a Line Chart

0 stars0🌍 Public
GGerasimos Katsagannis
Last edited May 20, 2022
Created on May 20, 2022

This interactive line chart visualizes population changes over time for world regions, with a vertical line marking a user-selected year. Clicking or hovering along the chart updates the selected year, repositioning the line to show the population at that moment. The visualization uses d3.nest and d3.scaleOrdinal to group data by region, d3.line with curveBasis to draw smoothed paths, and d3.axisBottom and d3.axisLeft for labeled axes. Data comes from UN population estimates and projections split across two CSV files, loaded via d3.csv.

AI-generated description