Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stylized Bar Chart

Public visualization

Viewing a saved revision (read-only)

af97a4607f7f437d9c9775e061ce6917

Fork of Stylized Bar Chart

0 stars0🌍 Public
Aashershah
Last edited Aug 23, 2021
Created on Aug 23, 2021
Forked from Stylized Bar Chart

This example presents a horizontal bar chart of the ten most populous countries, using data from the United Nations World Population Prospects 2019. The chart encodes each country’s 2020 population as a teal bar, with country names on the y-axis and population values on the x-axis. Built with React and d3.scaleBand and d3.scaleLinear, it renders SVG rectangles for each bar and includes a tooltip showing the exact population value. The axes are composed of lightweight components that map scales to tick lines and labels.

AI-generated description

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

Data: United Nations World Population Prospects 2019.