Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Population Bar Chart

Public visualization

Viewing a saved revision (read-only)

3c8c06c1e7e04f61acf90ad454a67c41

Population Bar Chart

0 stars1🌍 Public
Nnicklaus-roy
Last edited Apr 12, 2021
Created on Apr 12, 2021
Forked from Pie Chart

A horizontal bar chart displays the top ten countries by 2020 population from a UN dataset loaded via `d3.csv`. The chart uses React hooks (`useState`, `useEffect`) to manage data fetching and rendering, with SVG rectangles sized by `scaleLinear` for population values and positioned by `scaleBand` for country names. The visualization updates once the CSV data is parsed and sorted, presenting a clean, static comparison of population sizes without interactivity.

AI-generated description

Smiley face implementation with React.