Skip to main content
100%

Fork of Fork of Stylized Bar Chart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes