Skip to main content
100%

27_Temp Chart - Melting Data for Multiple Lines

✓ Published2🌍 Public
FFMajid-ops
Last edited Dec 24, 2020
Created on Dec 23, 2020

This multi-line chart visualizes population over time by region, with lines sorted by their final values and a categorical color legend. The code uses D3 v5 with scalable vector graphics, employing `d3.nest` to group data, `d3.scaleTime` and `d3.scaleLinear` for axes, and `d3.curveBasis` to smooth line paths. Data is loaded via `d3.csv` from UN population estimates, melted from wide to long format.

AI-generated description

The line chart

MIT Licensed

Similar vizzes