Skip to main content
100%

Bar Chart v1

✓ Published0🌍 Public
NNadir-Zenith
Last edited Aug 29, 2021
Created on Aug 29, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as horizontal bars with no axes or labels, making it a "pathetic" chart by design. The visualization uses React to fetch data from a CSV file of United Nations World Population Prospects 2019 and renders SVG rectangles via d3.scaleBand and d3.scaleLinear. The bar lengths encode population values for 2020, and the chart lacks any visual guides, focusing purely on raw bar lengths. The code employs d3.csv for data loading and React's useEffect and useState for state management.

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