Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Melting Data for Multiple Lines

Public visualization

Viewing a saved revision (read-only)

7a9ab7946ce743f0aa5f0ca381181618

Melting Data for Multiple Lines

0 stars0🌍 Public
SSatish Chandra Gupta
Last edited May 19, 2020
Created on May 19, 2020

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 description