Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
KKaushik Mishra
Last edited Mar 20, 2022
Created on Mar 20, 2022

This visualization displays the top 10 most populous countries as a horizontal bar chart, using population data from the United Nations World Population Prospects 2019. Built with React and D3 v5, it renders SVG elements through reusable components. The chart uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with `AxisBottom` and `AxisLeft` components generating tick marks and labels. Data is loaded asynchronously via `d3.csv` from a GitHub gist, and bars are drawn as `<rect>` elements whose widths correspond to each country's 2020 population.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes