Fork of Stylized Bar Chart
✓ Published0🌍 Public
This example shows the top 10 most populous countries as a horizontal bar chart, using population data from the United Nations World Population Prospects 2019. The chart uses React with SVG rendering, and it relies on D3 v5 APIs including `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and the `bottom` and `left` axis tick generators. The bars are drawn as SVG `<rect>` elements, with tooltips formatted using D3's `format` function to display abbreviated numbers, such as “1.4B” for billions.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed