Test
✓ Published0🌍 Public
This example shows the top 10 most populous countries as horizontal bars, with country names on the y-axis and population counts on the x-axis. The chart uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` handling the position and size of each bar. Data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv`. Hovering reveals a native tooltip, and axis ticks are formatted using D3’s `format` to abbreviate large numbers.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed