Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Refactored Bar Chart

Public visualization

Viewing a saved revision (read-only)

784b6ba4895b449984f6a4c4b6332273

Fork of Refactored Bar Chart

0 stars0🌍 Public
PPatric Tysk
Last edited Nov 13, 2021
Created on Nov 13, 2021

This bar chart displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset, with countries on the y-axis and population on the x-axis. The visualization uses React to render SVG elements, with the `d3.scaleBand` and `d3.scaleLinear` functions from D3 v5 handling the axis scaling. It includes custom React components for the axes and bars, with the data loaded asynchronously via D3’s `csv` function. The chart also shows a loading message before the data arrives.

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.