Skip to main content
Public

Share visualization

Loading preview…

Fork of linechart

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

Fork of linechart

0
Ssrividyamadas@gmail.com
Last edited Mar 28, 2024
Created on Mar 27, 2024
Forked from linechart

This line chart displays the population of five selected countries—India, the United States, China, Japan, and Germany—from 2011 to 2021. It loads comma-separated data via `d3.text`, parses it, and renders multiple lines using `d3.line` with `d3.curveLinear`. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, and a legend lists each country’s color from `d3.scaleOrdinal` with `d3.schemeCategory10`. The visualization uses an SVG rendering approach within a fixed-width container, labeling the y-axis in billions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed