Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Pplusbeauxjours
Last edited Sep 15, 2021
Created on Sep 15, 2021

This fork of a refactored bar chart displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset using React and D3 v5. Horizontal bars are rendered as SVG rectangles via the `Marks` component, scaled with `scaleBand` for the y-axis and `scaleLinear` for population values. The chart includes labeled axes using `AxisBottom` and `AxisLeft`, with population formatted using D3’s `format('.2s')`. Data is loaded asynchronously via `csv` and `useEffect`.

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