Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of 27_Temp Chart - Melting Data for Multiple Lines

Public visualization

Viewing a saved revision (read-only)

3fe3e4109d51497bb05ac3514bb0a3fd

Fork of 27_Temp Chart - Melting Data for Multiple Lines

0 stars0🌍 Public
Hhafiz9977
Last edited Dec 24, 2020
Created on Dec 24, 2020

This visualization displays population trends over time for various global regions, with each region rendered as a distinct colored line using a spline curve. The chart employs D3 v5’s scaleTime, scaleLinear, and scaleOrdinal APIs to map years, population values, and categorical colors, respectively. Data is sourced from UN population estimates and projections, melted into a long format for multiple lines. An interactive color legend, built with a custom `colorLegend` function, annotates each region’s line.

AI-generated description

The line chart