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

0
KKarkG
Last edited Aug 14, 2020
Created on Aug 14, 2020

Animated bar chart of historical and projected world population from 1950 to 2100, based on UN estimates. The chart displays bars for multiple regions, with a horizontal line marking the selected region’s population; hovering over a bar highlights it, dims others, and reveals percentage differences relative to the selected region. Built with D3 v5 using `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.select` for SVG rendering. Data is melted from two CSV files via a custom `melt` function, loading UN population estimates and medium variant projections.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed