Melting Data for Multiple Lines
✓ Published2🌍 Public
This visualization displays projected population changes for countries from 1950 to 2100, using multiple lines to track each nation over time. It employs d3.line with curveBasis smoothing and d3.nest to group data by country, with color-encoded lines and a d3.scaleOrdinal legend. The chart includes a circle marker and label at each line’s final point, with axes from d3.axisLeft and d3.axisBottom. Data comes from UN population estimates CSV files, processed through a custom melt function that transforms wide-format data into tidy rows.
AI-generated descriptionMIT Licensed