Bubble Chart of Population Data
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering SVG rectangles for each bar. Population data comes from the United Nations World Population Prospects 2019, formatted with D3’s `format('.2s')` to abbreviate large numbers. The visualization includes styled axes and a tooltip using the SVG `<title>` element.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed