Skip to main content
100%

Stylized Bar Chart

✓ Published0🌍 Public
AAdira4300
Last edited Apr 5, 2020
Created on Apr 5, 2020
Forked from Stylized Bar Chart

This stylized bar chart displays the ten most populous countries using data from the United Nations World Population Prospects 2019, with country names on the y-axis and population values on the x-axis. Built with React and D3 v5, the visualization uses `scaleBand` for categorical positioning and `scaleLinear` for population values, rendering marks as SVG rectangles. The code implements custom `AxisBottom` and `AxisLeft` components for ticks, applies a Poppins font, and includes tooltips via SVG `<title>` elements. Population values are formatted using D3’s `format` function to abbreviate large numbers.

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