🌍 Public
Viewing a saved revision (read-only)
2dd8c1902e03444087d59da428b7a84c
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