Skip to main content
100%

Melting Data form Multiple Lines

✓ Published1🌍 Public
TThomas Seberechts
Last edited Jun 8, 2020
Created on Jun 8, 2020

This chart shows population trends over time for global regions, with each region drawn as a colored line across a time axis from 1950 to 2100. The data is sourced from UN population estimates and medium variant projections, melted into a tidy format. Using d3.nest, the data is grouped by region and sorted by the final population value, then rendered with d3.line and curveBasis. A d3.scaleOrdinal assigns categorical colors, and a custom colorLegend displays the region labels. Gridlines, axis labels, and a title provide context.

AI-generated description
MIT Licensed

Similar vizzes