🌍 Public
Viewing a saved revision (read-only)
536c073c064f4f8a808ea43f21421e17
Fork of 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 descriptionA program that shows the top 10 most populous countries as a bar chart.