Skip to main content
100%

Stylized Bar Chart

✓ Published0🌍 Public
YYibo Zhang
Last edited Jan 21, 2022
Created on Jan 13, 2022
Forked from Stylized Bar Chart

This example displays the ten most populous countries as horizontal bars, with country names on the y-axis and population values on the x-axis, formatted in billions using d3.format. Built with React and D3 v5, the visualization uses scaleBand for the categorical y-axis and scaleLinear for the numeric x-axis, rendering SVG rectangles with native tooltip elements. The data comes from the United Nations World Population Prospects 2019 dataset, loaded asynchronously via d3.csv and filtered to the top ten entries. The chart features a clean Poppins font and muted teal and gray styling.

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