Skip to main content
100%

Stylized Bar Chart

✓ Published1🌍 Public
NNick Pearson
Last edited May 21, 2021
Created on May 21, 2021

This stylized bar chart displays the top 10 most populous countries using a horizontal layout, with a teal fill for each bar. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis, rendering bars as SVG rectangles via the `Marks` component. Axis ticks are styled with custom CSS, and population values are formatted with D3's `format` function, converting billions to display as "B". The data comes from the United Nations World Population Prospects 2019, loaded via 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