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)

99732fb81743439b92cae15d06796f2f

Melting Data for Multiple Lines

0 stars1🌍 Public
KKazushige Okuma
Last edited Oct 3, 2019
Created on Sep 30, 2019

This visualization shows population change over time for multiple world regions, displayed as separate colored lines on a line chart. The data is processed by melting a wide-format CSV file into a tidy format and concatenating historical estimates with medium-variant projections. The code uses d3.csv, d3.nest, d3.line, and d3.curveBasis to generate the paths, with d3.axisBottom and d3.axisLeft for the axes. A d3.scaleOrdinal color scheme distinguishes regions, and a custom colorLegend component renders the categorical legend.

AI-generated description