Skip to main content
100%

Refactoring a Bar Chart

✓ Published1🌍 Public
Ssimontoblad
Last edited Jan 29, 2022
Created on Jan 28, 2022

This example displays the top 10 most populous countries as a horizontal bar chart, with country names along the y-axis and population values on the x-axis. Built with React and SVG, it uses reusable components to render the bottom axis, left axis, and bars, with scales created via d3.scaleBand and d3.scaleLinear. Data is loaded asynchronously from a 2019 United Nations population CSV using d3.csv, and the visualization responds to loading with a placeholder text.

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