Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Selecting a Year on a Line Chart

Public visualization

Selecting a Year on a Line Chart

0 stars1🌍 Public
Ssongr0
Last edited Jul 17, 2019
Created on Jul 15, 2019

This interactive line chart displays global population trends across regions from 1950 to 2100, with a vertical marker indicating the currently selected year. Users hover over the chart to update the marker and select a new year. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, `nest`, and `line` with `curveBasis`, rendering in SVG. Data comes from UN population estimates and medium-variant projections, processed via CSV loading and a custom melt function.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed