Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fffork of Stylized Bar Chart

Public visualization

Viewing a saved revision (read-only)

9521f8a1cec84cb582d413847b6be438

Fork of Fffork of Stylized Bar Chart

0 stars0🌍 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.