Melting Data for Multiple Lines
✓ Published2🌍 Public
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 descriptionMIT Licensed