Skip to main content
100%

18. Stylized Bar Chart

✓ Published0🌍 Public
PPrashish Paudel
Last edited Mar 31, 2021
Created on Mar 31, 2021
Forked from Stylized Bar Chart

This stylized bar chart displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset, using a horizontal layout with a teal fill and a minimal gray axis. Built with React and SVG, it leverages d3’s `scaleBand` for categorical y-axis positioning and `scaleLinear` for population magnitudes, while custom `AxisBottom` and `AxisLeft` components render ticks and labels from the `d3` API. The chart includes formatted population values (e.g., “1.44B”) via `d3.format` and tooltips provided by SVG `<title>` elements, all styled with the Poppins font.

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