🌍 Public
Fork of Refactored Bar Chart
This horizontal bar chart displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset. The visualization uses React with D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the numerical x-axis, rendering bars as SVG rectangles. The code leverages `csv` from D3 to load data, and includes custom axis components for formatting tick labels with the `format` function. Tooltips provide formatted population values via the `<title>` element.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed
Comments
Sign in to join the discussion.