Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
KKrittaprot Tangkittikun
Last edited Aug 13, 2023
Created on Aug 13, 2023
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as a horizontal bar chart using React and D3 v5. The chart ranks countries by 2020 population estimates, with bars rendered as SVG rectangles using `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Axis components generate ticks and labels, while hover tooltips appear via SVG `<title>` elements. The data is loaded from a CSV file from the United Nations World Population Prospects 2019 using `d3.csv`, with population values converted from thousands.

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