Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
JJohn Robison
Last edited Jul 6, 2021
Created on Jul 6, 2021
Forked from Stylized Bar Chart

This chart displays the top 10 most populous countries as horizontal bars, ranked by population with country names on the y-axis. Bars are rendered as SVG rectangles using React components, with data loaded from the UN World Population Prospects 2019 via d3.csv. The visualization employs d3.scaleBand for categorical positioning and d3.scaleLinear for quantitative values, while d3.format abbreviates tick labels (e.g., "1.3B"). Axes and marks are generated through React’s component pattern, and a native SVG `<title>` element provides hover tooltips showing the exact population.

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