Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Selecting a Year on a Line Chart

Public visualization

Viewing a saved revision (read-only)

cefa849da34f4d2297f13bb3d9187f1a

Selecting a Year on a Line Chart

0 stars0🌍 Public
JJuyeonee
Last edited Jul 21, 2021
Created on Jul 21, 2021

This line chart displays population over time by world region, with each region represented by a colored path and a color legend. The visualization allows selection of a specific year by clicking on the chart, which updates the display accordingly. Built with D3 v6, the chart uses `scaleTime` and `scaleLinear` for axes, `line` with `curveBasis` for smooth paths, and `scaleOrdinal` with `schemeCategory10` for colors. The data comes from UN population estimates, processed by melting wide-format CSV data into tidy rows.

AI-generated description