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)

5187aff084c347ba9ea7dcc7fe75597b

Selecting a Year on a Line Chart

0 stars0🌍 Public
Ssingularity6033
Last edited Jan 31, 2020
Created on Jan 31, 2020

This line chart displays population trends over time for global regions, with a draggable vertical line enabling year selection. The chart updates dynamically as users hover, highlighting the selected year across all series. Built with D3 v5, it uses `nest()` for data grouping, `scaleTime` and `scaleLinear` for axes, and `line()` with `curveBasis` for smooth paths. Data comes from UN population estimates (1950-2100), with a color legend and axis labels rendered as SVG elements.

AI-generated description