Skip to main content
100%

Fork of Melting Data for Multiple Lines

✓ Published0🌍 Public
Zzwang1010
Last edited Sep 22, 2023
Created on Sep 22, 2023

This visualization uses layered line charts to show population trends over time for various global regions, with a legend providing color-coded identification. Built with D3.js v5, the code processes a UN population dataset by melting it from wide to long format, then renders an SVG with time-based x-axis and population y-axis. The graph implements multiple D3 APIs including `scaleTime`, `scaleLinear`, `nest` for grouping, and `line` with `curveBasis` for smoothed paths, while a custom `colorLegend` function displays the categorical color scale.

AI-generated description
MIT Licensed

Similar vizzes