Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

GDP Average Chart

Public visualization

Viewing a saved revision (read-only)

45ff435a6df94ada94d1738c0e870f2d

GDP Average Chart

0 stars0🌍 Public
Mmhzahdeh@dons.usfca.edu
Last edited Apr 29, 2025
Created on Apr 22, 2025

This D3.js bar chart visualizes the 2023 GDP per capita for the top 50 countries, using a green circle for each nation plotted along a categorical x-axis and a linear y-axis. Circles are positioned using `d3.scaleBand` and `d3.scaleLinear`, with interactive tooltips revealing the country name and GDP on hover. The SVG chart, built with `d3.svg` and `d3.axisBottom`/`d3.axisLeft`, reads data from the included `TopGDPCountries.csv` file, rotating x-axis labels for readability. Data originates from Worlddata.info.

AI-generated description