Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published2🌍 Public
HHaileabGH
Last edited Dec 6, 2021
Created on Nov 19, 2021
Forked from Stylized Bar Chart

This example visualizes the ten most populous countries using horizontal bars, with the underlying data from the United Nations World Population Prospects 2019. Rendered in SVG via React, the chart’s axes and rectangles are built from D3 scale components (`scaleBand`, `scaleLinear`) and custom components (`AxisBottom`, `AxisLeft`, `Marks`) that generate tick lines and labels. Population values are formatted with D3’s `format('.2s')` to display abbreviations like “B” for billions, while a `<title>` element provides tooltips. The visualization uses the Poppins font and a muted color scheme for the marks and axes.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes