π Public
Viewing a saved revision (read-only)
e928223050614a31b18ef070ad5b53b8
Melting data for multiple lines
This visualization displays world population trends from 1950 to 2100 as multiple colored lines, one for each country or region, ordered by their final population value. It uses d3.line generators with a basis curve to create smooth paths, while d3.nest groups the data by country name. The chart includes axis labels, a color legend, and a title. Data is loaded from two CSV files, melted into a long format, and rendered as SVG, with the y-axis inverted to show population values.
AI-generated description