Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
WWolfgang
Last edited Mar 20, 2021
Created on Mar 20, 2021

This visualization displays the top 10 most populous countries as horizontal bars, with each rectangle’s length proportional to its 2020 population estimate from the United Nations World Population Prospects 2019. The React app loads the CSV data via `d3.csv`, scales the values with `scaleLinear` and `scaleBand`, and renders axes and marks as SVG elements using custom components. The bottom axis uses `xScale.ticks()` for tick generation, while the left axis maps country names to band positions.

AI-generated description

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

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes