Skip to main content
100%

Melting Data for Multiple Lines

✓ Published0🌍 Public
LLittledevil7
Last edited Jun 8, 2020
Created on Jun 8, 2020

This interactive line chart visualizes population over time by region, with a vertical orange line marking the currently selected year. Users can move their mouse across the chart to change the selected year, which is displayed alongside the population trajectories. The chart uses D3’s `scaleTime`, `scaleLinear`, and `line` with `curveBasis` to render smoothed curves, and relies on `nest` for data grouping. The data is sourced from UN population estimates and a medium variant projection, processed via a custom melt function. The legend uses `scaleOrdinal` with the `schemeDark2` palette.

AI-generated description
MIT Licensed

Similar vizzes