Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
TTCSMFrogdance
Last edited Jun 16, 2021
Created on Jun 16, 2021
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries in 2019 as a horizontal bar chart, with country names on the y-axis and population on the x-axis. The visualization uses React components to render SVG bars, axes, and labels, leveraging D3 scales such as `scaleBand` and `scaleLinear` for positioning. Data comes from the United Nations World Population Prospects, loaded via `d3.csv` and formatted with `d3.format` for tick labels. The chart includes styled gridlines, axis text, and a loading state, with tooltips showing exact population values.

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