Skip to main content
100%

Stylized Bar Chart

✓ Published1🌍 Public
Iip01
Last edited Dec 2, 2019
Created on Dec 2, 2019
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as horizontal bars, with a fixed-width SVG layout and a loading state. It uses React with d3.scaleBand for the y-axis and d3.scaleLinear for the x-axis, while d3.format abbreviates population values (e.g., “1.4B”). The data is loaded via d3.csv from the UN World Population Prospects 2019 dataset, sorted and sliced to the top 10. Axes are custom SVG components, and each bar has a native <title> tooltip.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes