Fork of Fork of Fork of Stylized Bar Chart
✓ Published0🌍 Public
A horizontal bar chart ranks the ten most populous countries by their 2020 estimated population, with a teal fill and labeled axes. Built with React and D3 v5, it uses `scaleBand` for country categories, `scaleLinear` for population, and renders SVG rectangles via the `Marks` component. The `useData` hook loads UN World Population Prospects data from a Gist CSV, while `AxisBottom` and `AxisLeft` generate ticks. Population values are formatted using `d3.format` with "B" replacing "G" for billions.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed