Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
KKuladeep
Last edited Jul 1, 2021
Created on Jul 1, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as horizontal bars without axes, using the United Nations World Population Prospects 2019 dataset. The visualization loads CSV data with `d3.csv`, filters it to the first ten rows, and renders the bars as SVG `<rect>` elements. It employs `d3.scaleBand` for the y-axis country positions and `d3.scaleLinear` for the x-axis population values. The app is built with React, managing loading state via hooks `useState` and `useEffect`.

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