Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Jjerryren527
Last edited Jun 10, 2023
Created on Jun 10, 2023
Forked from Stylized Bar Chart

This example displays a horizontal bar chart of the ten most populous countries, using data from the United Nations World Population Prospects 2019. React components render SVG bars and axes, with d3’s `scaleBand` and `scaleLinear` mapping countries and population values, while `d3.format` converts tick labels from billions to compact notation. The chart includes tooltips via SVG `<title>` elements and a styled “Population” axis label.

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