Skip to main content
100%

Melting data for multiple lines

✓ Published0🌍 Public
Aajaykumar2014
Last edited Jul 13, 2020
Created on Jul 13, 2020

This visualization shows population trends over time for the world’s regions, with each region drawn as a distinct colored line and accompanied by a color legend. The data is loaded from UN population estimates and medium variant projections, then reshaped from wide to long format using custom logic. D3 v5’s `nest`, `scaleTime`, `scaleLinear`, `scaleOrdinal`, `line`, and axis functions render the SVG line chart. Lines are ordered by their final population value, and gridlines are enhanced with tick marks.

AI-generated description
MIT Licensed

Similar vizzes