Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

28_Temp Chart - Melting Data for Multiple Lines - Selecting a year on line chart

Public visualization

Viewing a saved revision (read-only)

6569d923e9194473bc05e7af613d3dbb

28_Temp Chart - Melting Data for Multiple Lines - Selecting a year on line chart

0 stars0🌍 Public
FFMajid-ops
Last edited Dec 24, 2020
Created on Dec 24, 2020

This visualization displays population trends over time for multiple global regions as distinct colored lines. A dark vertical marker indicates the currently selected year, which can be changed by moving the mouse across the chart, updating the selection dynamically. The chart uses D3.js v5 with SVG rendering, employing scales, axes, and line generators to plot the data. It loads UN population estimates and projections from CSV files, melts the data into a tidy format, and uses a color legend for region identification.

AI-generated description

The line chart