Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
Sseanmdalrymple@protonmail.com
Last edited Feb 11, 2025
Created on Feb 11, 2025

This fork of a refactored bar chart displays the top 10 most populous countries using horizontal bars, with population values on the x-axis and country names on the y-axis. The visualization uses React components with D3 scales, including `scaleBand` for the y-axis and `scaleLinear` for the x-axis, rendering SVG rectangles as marks. Axes are drawn via custom React components that map D3 ticks to SVG elements, with tooltips formatted using D3’s `format` function. Data comes from the United Nations World Population Prospects 2019, loaded as CSV and processed with D3’s `csv` method.

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