Skip to main content
100%

Melting data for multiple lines

✓ Published1🌍 Public
Aarieltonglet
Last edited Oct 14, 2019
Created on Oct 4, 2019

This visualization shows changes in world population over time across multiple regions and countries, with each entity represented as a colored line. The chart uses a time-scale x-axis and a reversed linear y-axis to display population values, with a categorical color scale distinguishing the lines. Data is melted from wide-format CSV files into tidy long format before being nested by country name. The implementation relies on d3.csv, d3.nest, d3.scaleTime, d3.scaleLinear, d3.line, and d3.axisBottom/axisLeft, with a custom color legend component rendering as SVG.

AI-generated description
MIT Licensed

Similar vizzes