Skip to main content
Public

Share visualization

Loading preview…

Melting Data for Multiple Lines

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Melting Data for Multiple Lines

1
NNeepaB
Last edited Jan 6, 2021
Created on Jan 5, 2021

This visualization shows population over time by region, with multiple colored lines tracing each region’s trajectory from 1950 to 2100. The chart uses a time scale for the x-axis, a linear scale for population, and an ordinal color scale with a custom legend. D3’s `nest()` and `scaleOrdinal` group and color the series, while `d3.line` with `curveBasis` smooths the paths. Data comes from UN population estimates and medium-variant projections, melted into a tidy format for plotting as SVG.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed