🌍 Public
Viewing a saved revision (read-only)
371495c9a8364a25834db26405f79698
Fork of Selecting a Year on a Line Chart
A multi-line chart displays United Nations population estimates and projections by region from 1950 to 2100, with a vertical line marking the currently selected year. Mousing over the chart updates the line’s position, using the d3.mouse event and xScale.invert to set the selected year. The visualization renders in SVG with d3.line, curveBasis, and ordinal color scales, while a color legend lists each region. Data comes from two CSV files concatenated after melting wide-format rows into tidy year–population pairs.
AI-generated description