Skip to main content
100%

Fork of Fork of Stylized Bar Chart

✓ Published1🌍 Public
HHaileabGH
Last edited Dec 6, 2021
Created on Dec 6, 2021

This example displays the top 10 most populous countries as horizontal bars, ordered by population with a formatted axis showing values in billions. The chart uses React components to render SVG elements, with D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv` and sorted before rendering. Stylized with the Poppins font and teal bar fills, the visualization includes tick marks, axis labels, and tooltips via SVG `<title>` elements.

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