Skip to main content
100%

Refactored Fork of Bar chart UN data

✓ Published1🌍 Public
FFlorian Maas
Last edited Feb 25, 2022
Created on Feb 24, 2022
Forked from Bar chart UN data

This example displays a horizontal bar chart of United Nations population data for the top 10 countries. It uses React with D3 v5's `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. The chart is rendered directly as SVG elements, with axes built from D3's tick marks, and it loads its dataset from a CSV file using D3's `csv` function. The visualization maintains a fixed layout.

AI-generated description

Follow the mouse and resize.

MIT Licensed

Similar vizzes