Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart

Public visualization

Viewing a saved revision (read-only)

4b8a520110fa451786abac0b82a44039

Bar Chart

0 stars0🌍 Public
CChiedu Egbumokei Jr
Last edited Dec 26, 2021
Created on Dec 26, 2021
Forked from Pathetic Bar Chart

This bar chart displays the top 10 most populous countries using data from the United Nations World Population Prospects 2019. The visualization uses React with hooks to fetch and process the CSV data, then renders SVG rectangles scaled by population values. The code employs d3.csv, scaleBand, and scaleLinear to position bars and create x-axis ticks, though no y-axis labels are drawn. A loading state shows "Loading..." via a pre element until the dataset is ready.

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.