Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Melting Data for Multiple Lines

Public visualization

Viewing a saved revision (read-only)

a46ea07f9d5f40ee80ece8da7b9c4652

Melting Data for Multiple Lines

0 stars1🌍 Public
Ggabcoderboi
Last edited Jan 3, 2021
Created on Jan 1, 2021

This visualization shows projected population over time by region, with multiple colored lines representing different areas. The line paths are sorted by their final population values, and a categorical color legend identifies each region. The code uses D3 v5’s `nest`, `line`, `scaleTime`, `scaleLinear`, and `scaleOrdinal` APIs. Data is loaded from UN population CSV files and melted from wide to long format in `loadAndProcessData.js`, then rendered as an SVG with axis labels and a legend.

AI-generated description