Skip to main content
100%

Steve's refactored barchart

✓ Published1🌍 Public
Bbootshine2
Last edited Sep 25, 2019
Created on Sep 25, 2019

This interactive bar chart displays the top 10 most populous countries, using horizontal bars whose lengths represent population figures from the United Nations World Population Prospects 2019 dataset. Built with React and D3 v5, it renders axes and marks as SVG elements, leveraging `scaleBand`, `scaleLinear`, and custom components for the bottom axis, left axis, and rectangular bars. Data is loaded asynchronously via D3’s `csv` function, then sorted and sliced before being passed to the scales. The visualization includes axis lines, tick labels, and country names for clarity.

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