Skip to main content
100%

axis

✓ Published1🌍 Public
NNart Williamson
Last edited Apr 27, 2021
Created on Apr 27, 2021
Forked from Pathetic Bar Chart

This example displays the ten most populous countries as horizontal bars, sized by their 2020 population estimates from the United Nations World Population Prospects 2019 dataset. The chart deliberately omits axes, emphasizing the raw length comparisons. Using React’s `useState` and `useEffect` hooks, it fetches CSV data via `d3.csv`, then renders SVG rectangles with `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis. The visualization highlights how bar charts rely on axes for accurate value interpretation.

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