Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

United States GDP

Public visualization

United States GDP

0 stars0🌍 Public
Vvaynexie
Last edited Jan 3, 2020
Created on Jan 3, 2020

A bar chart displays quarterly United States GDP growth from 1947 to 2015, with each bar’s height representing billions of dollars and hovering revealing a tooltip with the exact value. The visualization uses D3 v5 to load JSON data from FreeCodeCamp’s GitHub repository, scales the GDP values with `d3.scaleLinear`, and renders axis ticks via `d3.axisBottom` and `d3.axisLeft`. Bars are appended as SVG `rect` elements, animated through mouseover and mouseout transitions that show an overlay and tooltip.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed