Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
PPijush Barman
Last edited Mar 9, 2021
Created on Mar 9, 2021
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as horizontal bars, using population data from the United Nations World Population Prospects 2019. The chart loads data via d3.csv and maps it with scaleBand and scaleLinear, rendering SVG rectangles for each bar. React components structure the visualization, while d3.format converts tick labels from billions to a compact "B" suffix. A native SVG <title> element provides hover tooltips showing the exact population value.

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