Melting Data for Multiple Lines
✓ Published0🌍 Public
This visualization shows population trends over time for different global regions, with multiple lines plotted on a time-series chart. The legend and color scale indicate which line corresponds to which region. The code uses d3.csv to load UN population data, d3.nest to group by region, d3.line with curveBasis for smooth paths, and d3.scaleTime and d3.scaleLinear for axes. A custom colorLegend module renders the interactive legend using SVG circles and text.
AI-generated descriptionMIT Licensed