Skip to main content
100%

Fffork of Stylized Bar Chart

✓ Published1🌍 Public
Ssucotton9
Last edited Jul 15, 2021
Created on Jul 15, 2021
Forked from Stylized Bar Chart

This example shows the top 14 countries by migrant population in 2020, rendered as a horizontal bar chart using React and D3 v5. The visualization uses `scaleBand` for the y-axis categories, `scaleLinear` for the x-axis values, and SVG `rect` elements with native tooltips via `<title>`. Axes are built with custom React components, and tick labels are formatted with `d3.format`. Data comes from a CSV hosted in a GitHub gist, fetched with the Fetch API and parsed with `d3.csvParse`. The chart uses a Poppins font and a teal color scheme.

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