Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
SSimon Davis
Last edited May 13, 2021
Created on May 13, 2021
Forked from Stylized Bar Chart

This example shows the top 10 most populous countries as a horizontal bar chart, using population data from the United Nations World Population Prospects 2019. The chart uses React with SVG rendering, and it relies on D3 v5 APIs including `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and the `bottom` and `left` axis tick generators. The bars are drawn as SVG `<rect>` elements, with tooltips formatted using D3's `format` function to display abbreviated numbers, such as “1.4B” for billions.

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