Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Selecting a Year on a Line

Public visualization

Selecting a Year on a Line

0 stars0🌍 Public
MMunTatt Yap
Last edited Aug 30, 2019
Created on Aug 26, 2019

This line chart visualizes global population trends by region from 1950 to 2100 using UN population data. A black vertical line marks the currently selected year, and hovering over the chart updates the selection to the nearest year, shifting the line accordingly. The visualization uses d3’s `scaleTime` and `scaleLinear` axes, a `line` generator with `curveBasis` for smoothing, and a color legend built with `scaleOrdinal` and `schemeCategory10`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed