Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
NNigel Quinlan
Last edited Mar 14, 2021
Created on Mar 14, 2021
Forked from Stylized Bar Chart

This visualization displays the top 10 most populous countries using a horizontal bar chart, with country names on the y-axis and population counts on the x-axis. The React app loads data from the UN World Population Prospects 2019 CSV via d3.csv, then renders SVG bars using d3.scaleBand and d3.scaleLinear. The code uses d3.format to abbreviate tick labels, replacing 'G' with 'B' for billions. The chart includes styled axis labels and tooltips showing population values when hovering over each bar.

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