Scatter plot
✓ Published0🌍 Public
This example shows the top 10 most populous countries as a horizontal bar chart, with population values on the x-axis and country names on the y-axis. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendered as SVG rectangles. Data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv`. Axis ticks and labels are generated with custom React components, and population values are formatted using D3’s `format` with SI prefixes.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed