Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Yyimjohns
Last edited Jan 18, 2022
Created on Jan 18, 2022
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as horizontal bars, with country names on the y-axis and population counts on the x-axis, formatted in billions. The chart is built with React and D3 v5, using `scaleBand` and `scaleLinear` to position bars and axes, and SVG `<rect>` elements for rendering. Data comes from the United Nations World Population Prospects 2019 CSV, loaded via `d3.csv`. Native `<title>` elements provide hover tooltips with formatted population values.

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