Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Rrishyossarian
Last edited Jan 4, 2022
Created on Jan 4, 2022
Forked from Pathetic Bar Chart

This example renders an empty SVG after loading population data from the United Nations World Population Prospects 2019 via D3’s `csv` function. It uses React hooks (`useState`, `useEffect`) to fetch and store the data, displaying a "Loading..." message until the CSV arrives. The chart currently contains no bars, axes, or other visual elements—only a fixed 960×500 SVG frame. The code imports `scaleBand`, `scaleLinear`, and `max` from D3, but never invokes them, leaving the visualization incomplete. The rendering relies on React’s `ReactDOM.render` with D3 v5 for data loading.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes