Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published0🌍 Public
TTheAnswer-Is-42
Last edited Jan 3, 2022
Created on Jan 3, 2022

This example displays the top 10 most populous countries from the United Nations World Population Prospects 2019 dataset as horizontal bars. The chart uses React with D3 v5 utilities, including `scaleBand` for the y-axis country categories, `scaleLinear` for the population x-axis, and `csv` to load and parse the data from a GitHub gist. Axes are rendered as separate SVG components (`AxisBottom` and `AxisLeft`), while `Marks` draws the rectangles. The visualization shows population values without numerical tick labels on the x-axis, presenting data in a clean, unlabeled bar layout.

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