Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Melting Data for Multiple Lines

Public visualization

Fork of Melting Data for Multiple Lines

0 stars0๐ŸŒ Public
Hhaiyangwhy1015
Last edited Feb 24, 2021
Created on Feb 24, 2021

This visualization shows population trends over time for multiple world regions, with each region represented as a colored line. It displays data from 1950 to 2100, combining UN population estimates with medium variant projections. The chart orders lines by their final population values and uses a legend to identify regions. The code employs d3.nest for data grouping, d3.line with curveBasis for smooth paths, and d3.scaleTime for the time axis. The underlying data is melted from wide to long format, with yearly values converted to date objects.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed