Skip to main content
Unlisted

Share visualization

Loading preview…

Assignment #5 Line Chart

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

Anyone with the link can view this unlisted visualization. Posting it publicly will make the link discoverable.

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

Assignment #5 Line Chart

2
Mmhzahdeh@dons.usfca.edu
Last edited Apr 13, 2025
Created on Feb 24, 2025

This D3 v7 line chart displays U.S. state population trends from 1990 to 2023, plotting each state’s name on the x-axis and population count on the y-axis. The SVG rendering uses `d3.csv` to load the sample data, `d3.scaleBand` for the categorical axis, and `d3.scaleLinear` for the numeric axis. A single polyline, drawn with `d3.line` and appended as an SVG path, connects the data points, showing population changes over time across all states.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed