Melting Data for Multiple Lines
✓ Published0🌍 Public
This visualization shows population trends over time for global regions, displaying multiple lines on a chart with a color-coded legend. The data is sourced from UN population estimates and projections, spanning from 1950 to 2100. The code uses d3.csv and d3.nest to process and group the data, while d3.line with curveBasis generates the smooth paths. Color is assigned via d3.scaleOrdinal with schemeCategory10, and the chart includes axes rendered with d3.axisBottom and d3.axisLeft, with a custom color legend component for identifying each region.
AI-generated descriptionMIT Licensed