Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Dddan0
Last edited Jul 23, 2021
Created on Jul 23, 2021
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as a horizontal bar chart, with population values formatted in billions (e.g., "1.3B") using d3.format. The React app loads UN World Population Prospects 2019 data via d3.csv and renders SVG bars with Poppins typography. It uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, while custom AxisBottom and AxisLeft components generate ticks. Native SVG `<title>` elements provide hover tooltips.

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