🌍 Public
Viewing a saved revision (read-only)
b3683a7170264230978cc93b16967a94
Multing Data for Multiple Lines
This visualization displays population trends over time for various regions, with each line representing a different area and color-coded via a categorical scale. It uses d3.line with curveBasis to generate smooth paths, d3.nest to group data by region, and d3.scaleOrdinal for colors. Population estimates from UN data are melted into a tidy format, with axes formatted using d3.axisBottom and d3.axisLeft. A custom colorLegend component renders the legend alongside the SVG chart.
AI-generated description