Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored Fork of Bar chart UN data

Public visualization

Viewing a saved revision (read-only)

f9dc8297b0fb4c46ab42d6e2b0f8f54e

Refactored Fork of Bar chart UN data

0 stars1🌍 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.