Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
PPatric Tysk
Last edited Nov 7, 2021
Created on Nov 6, 2021
Forked from Pathetic Bar Chart

This example presents the top 10 most populous countries as a horizontal bar chart, with bars extending right from country labels. The chart deliberately omits axes, relying only on bar lengths and faint gridlines to convey magnitude. Built with React and D3 v5, the code loads UN population data via `d3.csv`, then uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-scale. Rendering occurs through SVG `rect` elements inside a React component, with tick marks generated manually and styled minimally.

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