Skip to main content
Public

Share visualization

Loading preview…

27_Temp Chart - 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

27_Temp Chart - Melting Data for Multiple Lines

2
FFMajid-ops
Last edited Dec 24, 2020
Created on Dec 23, 2020

This multi-line chart visualizes population over time by region, with lines sorted by their final values and a categorical color legend. The code uses D3 v5 with scalable vector graphics, employing `d3.nest` to group data, `d3.scaleTime` and `d3.scaleLinear` for axes, and `d3.curveBasis` to smooth line paths. Data is loaded via `d3.csv` from UN population estimates, melted from wide to long format.

AI-generated description

The line chart

Comments

Sign in to join the discussion.

MIT Licensed