Skip to main content
100%

Fork of Fork of Fork of Stylized Bar Chart

✓ Published1🌍 Public
HHaileabGH
Last edited Dec 6, 2021
Created on Dec 6, 2021

A stylized bar chart displays the top 10 most populous countries, with each bar's length proportional to its 2020 population estimate. The visualization uses React with D3 v5, employing `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG renders the chart, with axes drawn manually via `AxisBottom` and `AxisLeft` components, while `Marks` renders rectangles with native tooltip titles. Population values are formatted using D3's `format` function to abbreviate numbers (e.g., 1.4B). Data comes from the United Nations World Population Prospects 2019 CSV, loaded asynchronously via `useData`.

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