Skip to main content
100%

Melting Data for Multiple Lines

✓ Published2🌍 Public
KKurt J Nilsen
Last edited Aug 7, 2020
Created on Aug 5, 2020

This example shows world population projections from 1950 to 2100 as multiple smoothed lines, with a vertical line marking the currently selected year. The chart uses a color legend to distinguish regions, and hovering over the chart updates the selected year. It uses `d3.nest()` to group data, `d3.line()` with `curveBasis` for path generation, and `d3.scaleTime`/`d3.scaleLinear` for axes. The data is melted from CSV files, and the view is rendered as an SVG.

AI-generated description
MIT Licensed

Similar vizzes