Skip to main content
100%

Fork of Fffork of Stylized Bar Chart

✓ Published0🌍 Public
Ssucotton9
Last edited Jul 15, 2021
Created on Jul 15, 2021

This stylized bar chart displays the top 14 countries by migrant population in 2020, ranked on the y-axis with horizontal bars extending along the x-axis. Built with React and rendered as SVG, it uses D3 v5 scales and formatters: `scaleBand` for categorical y-axis positioning, `scaleLinear` for the numeric x-axis, and `format` to abbreviate large numbers with a custom tick formatter that converts gigabytes to billions. Data is fetched from a CSV file using the `fetch` API and parsed via `d3.csvParse`, with a Poppins font and custom axis colors.

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