Bar Chart
✓ Published0🌍 Public
This bar chart displays the top 10 most populous countries in 2020, with horizontal bars sorted by population. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering SVG rectangles via the `Marks` component. Tooltips show formatted population values using D3’s `format` with SI prefixes. Data comes from the United Nations World Population Prospects 2019, loaded asynchronously with `csv`.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed