Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World population bar chart

Public visualization

Viewing a saved revision (read-only)

b3d8ccfd4a224d81be10eda2a7554a17

World population bar chart

0 stars1🌍 Public
AAndrea Picciau
Last edited Oct 30, 2021
Created on Oct 30, 2021

This example shows a horizontal bar chart displaying the top ten countries by 2020 population estimates. The chart uses React state and effects to load and transform the data with `d3.csv`, then renders SVG rectangles scaled by `d3.scaleLinear` and positioned with `d3.scaleBand`. The data comes from the UN Population 2019 dataset, and the visualization updates asynchronously after loading.

AI-generated description

Smiley face implementation with React & D3.