Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React D3 CSV BarChart

Public visualization

React D3 CSV BarChart

0 stars2🌍 Public
Ggjonor
Last edited Feb 5, 2020
Created on Feb 3, 2020
Forked from React Starter

A React bar chart displays the nominal GDP in US dollars for 31 countries, using the latest available yearly data from the World Bank's World Development Indicators. The chart renders as an SVG with linear and band scales, using D3 v5 functions such as `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to position bars and axes. Data is loaded from CSV files and parsed with D3's `text` and `csvParse` methods, then filtered and sorted within React hooks.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed