Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Stylized Bar Chart

Public visualization

Viewing a saved revision (read-only)

be3e450a46b04422bfa897dc40ba0de3

Fork of Fork of Stylized Bar Chart

0 stars0🌍 Public
EEmma kim
Last edited Jun 22, 2021
Created on Jun 22, 2021

This example shows the ten most populous countries in 2020 as a horizontal bar chart, with country names on the y-axis and population counts (in billions) on the x-axis. Built with React and D3 v5, it uses `d3.scaleBand` and `d3.scaleLinear` to map data from the United Nations World Population Prospects 2019 dataset. SVG rectangles render each bar, with axes generated via `xScale.ticks()` and tooltips provided by SVG `<title>` elements.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.