Skip to main content
100%

Fork of Fork of Fork of Stylized Bar Chart

✓ Published0🌍 Public
Ssudeepmathew
Last edited Oct 22, 2021
Created on Oct 22, 2021

A horizontal bar chart ranks the ten most populous countries by their 2020 estimated population, with a teal fill and labeled axes. Built with React and D3 v5, it uses `scaleBand` for country categories, `scaleLinear` for population, and renders SVG rectangles via the `Marks` component. The `useData` hook loads UN World Population Prospects data from a Gist CSV, while `AxisBottom` and `AxisLeft` generate ticks. Population values are formatted using `d3.format` with "B" replacing "G" for billions.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes