Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Jjwesterlund412
Last edited Jan 10, 2022
Created on Jan 10, 2022
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as horizontal bars, using the United Nations World Population Prospects 2019 dataset. It shows a styled bar chart with a Poppins font, custom teal bars, and formatted axis labels that convert scientific notation to billions. Built with React and D3 v5, the code uses `scaleBand` and `scaleLinear` for positioning, while SVG rectangles render the marks with tooltips. The axes are created via `AxisBottom` and `AxisLeft` components, and the data is loaded asynchronously using D3’s `csv` function.

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