Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
Cchar0496
Last edited Apr 16, 2022
Created on Apr 16, 2022
Forked from Stylized Bar Chart

This example visualizes the ten most populous countries as a horizontal bar chart using React and D3 v5. Population values from the UN World Population Prospects 2019 dataset are mapped to bar lengths via `scaleLinear`, while country names position bars with `scaleBand`. The SVG rendering uses reusable AxisBottom, AxisLeft, and Marks components. Stylized with the Poppins font, gridlines and labels are styled through CSS classes, and hover tooltips display formatted population values using D3's `format`.

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