Skip to main content
100%

Making Bar Chart

✓ Published0🌍 Public
SSven
Last edited Aug 7, 2021
Created on Aug 7, 2021
Forked from Pathetic Bar Chart

This example visualizes the top 10 most populous countries as a basic bar chart with no axes or labels, using population data from the United Nations World Population Prospects 2019. It loads CSV data with `d3.csv` and renders SVG rectangles with React, where each bar’s width is scaled by `d3.scaleLinear` and its vertical position uses `d3.scaleBand`. The chart updates after a brief “Loading...” state, driven by React hooks like `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