Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Melting Data for Multiple Lines

Public visualization

Melting Data for Multiple Lines

0 stars0🌍 Public
Eedxiao97
Last edited Oct 3, 2019
Created on Oct 3, 2019

This visualization shows population change over time for different world regions, with multiple lines plotted on a shared time axis to compare regional trends. The chart uses a color-coded legend to distinguish each region. The code processes a UN dataset by "melting" the data from wide to long format, using `loadAndProcessData` to combine estimates and projections. It renders with D3 v5’s `scaleTime`, `scaleLinear`, `line`, and `curveBasis` for smooth lines, plus custom `colorLegend` and `axisBottom`/`axisLeft` helpers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed