Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
GGeekboxer
Last edited Jul 27, 2021
Created on Jul 27, 2021
Forked from Pathetic Bar Chart

This example renders a bar chart of the ten most populous countries using React and D3 v5, with data from the 2019 United Nations World Population Prospects. The chart is intentionally minimal, lacking axes and using only bars labeled with country names and value ticks generated by `xScale.ticks()`. SVG elements are created via React's JSX, with scales defined by `scaleBand` and `scaleLinear`. Data loads asynchronously through `d3.csv`, and the bars update once the top ten rows are fetched and parsed.

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