Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Aanandbabu-k
Last edited Jul 15, 2022
Created on Jul 15, 2022
Forked from Pathetic Bar Chart

This example shows the top 10 most populous countries as a bare bar chart with no axes or labels, using rectangles whose widths encode population. The visualization fetches data from the United Nations World Population Prospects 2019 CSV, then sorts and slices it to the first ten rows inside a React component. It uses d3.csv for loading, d3.scaleBand for the vertical country positioning, and d3.scaleLinear for the horizontal population values, rendering the output as SVG via React elements.

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