Skip to main content
100%

Melting Data for Multiple Lines 2

✓ Published0🌍 Public
Ssteveaigbe
Last edited Dec 1, 2020
Created on Dec 1, 2020

This visualization shows population trends over time, displaying multiple lines for different regions as determined by the United Nations data. The chart uses a time series layout, with a legend positioned on the right, created using D3’s `scaleOrdinal`, `scaleTime`, and `scaleLinear`. Lines are drawn with the `line` generator, using the `curveBasis` option for smoothness, and are sorted by their last value via `d3.nest`. Data is melted from a CSV file (`us-unemp.csv`) using custom parsing, with `timeParse` converting year strings.

AI-generated description
MIT Licensed

Similar vizzes