Skip to main content
100%

Stylized Bar Chart

✓ Published1🌍 Public
Ccoltonjcox92
Last edited Feb 5, 2022
Created on Jan 30, 2022

This stylized bar chart displays the top 10 most populous countries using United Nations World Population Prospects 2019 data, sorted by population with blue bars and a "Population" axis label. It is rendered as SVG through React, using D3’s `scaleBand` for the categorical y-axis, `scaleLinear` for the x-axis, and `format` to convert population values into abbreviations like "1.4B". The chart includes custom `AxisBottom` and `AxisLeft` components that render ticks, gridlines, and labels, with a tooltip on each bar showing the formatted population value via a native SVG `<title>` element.

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