Skip to main content
100%

D3 Melting Data for Multiple Lines

✓ Published0🌍 Public
Rrdeichert
Last edited Dec 18, 2019
Created on Dec 18, 2019

This visualization displays population trends over time for various world regions, with multiple colored lines representing different areas. The chart uses D3's `scaleTime` and `scaleLinear` to map the data for the x and y axes, and `scaleOrdinal` with `schemeCategory10` for line colors. The code uses D3's `nest` function to group the data by region name, and employs `line` with `curveBasis` for smooth curve rendering. The data is melted from UN population estimates and medium variant projections, covering years from 1950 to 2100. A custom `colorLegend` component renders the color guide for the regions.

AI-generated description
MIT Licensed

Similar vizzes