Skip to main content
100%

Refactored Bar Chart

✓ Published0🌍 Public
Mmayhob
Last edited Feb 27, 2022
Created on Feb 27, 2022

This is a refactored bar chart visualizing the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset. The chart shows horizontal bars representing each country’s population, with axes on the bottom and left. Built with React and D3 v5, the code uses reusable components (AxisBottom, AxisLeft, Marks) that leverage D3’s scaleBand and scaleLinear to position bars and ticks, rendering everything as SVG elements within a React component.

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