Fork of Stylized Bar Chart
✓ Published0🌍 Public
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.
MIT Licensed