Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Fork of Stylized Bar Chart

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed