Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot of Loading US GDP Data

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

Scatter Plot of Loading US GDP Data

1
SSeekerzero
Last edited Feb 20, 2023
Created on Feb 13, 2023

This scatter plot visualizes annual US GDP data, showing the relationship between year and GDP in current dollars. It uses D3 v7 to load data from a CSV file, parsing values for date and level-current, then draws circles positioned by linear scales for x and y axes. The visualization demonstrates asynchronous data fetching and SVG rendering.

AI-generated description

based on template from professor given.

dataset from: https://datahub.io/core/gdp-us

Gross Domestic Product of the United States (US GDP)

Gross Domestic Product (GDP) of the United States (US) both nominal and real on an annual and quarterly basis. Annual data is provided since 1930 and quarterly data since 1947. Both total GDP (levels) and annualized percentage change in GDP are provided. Both levels and changes are available both in current dollars (nominal GDP) and in chained 2009 dollars (real GDP). Data is sourced from US Government’s Bureau of Economic Analysis (BEA) and provided in standardized CSV.

Field Name Order Type (Format) Description
date 1 year The year
level-current 2 number GDP in billions of current dollars
level-chained 3 number GDP in billions of chained 2009 dollars
change-current 4 number GDP percent change based on current dollars
change-chained 5 number GDP percent change based on chained 2009 dollars

Comments

Sign in to join the discussion.

MIT Licensed