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)

499e9588c5874d20babe492d63601700

Fork of Selecting a Year on a Line Chart

0 stars0🌍 Public
Aabhimanyu-dhar
Last edited May 9, 2021
Created on May 9, 2021

This interactive line chart displays population estimates and projections for world regions from 1950 to 2100. Users can hover over the chart to select a specific year, which draws a vertical black line and updates the selected year used for sorting the color-coded legend. The visualization uses d3.line with curveBasis for smoothed paths, d3.scaleTime and d3.scaleLinear for axes, and a d3.mouse event handler to trigger year selection. Data comes from UN population estimates loaded via d3.csv.

AI-generated description