Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

UN Population Bar Chart

Public visualization

Viewing a saved revision (read-only)

f4d2cf307d5d41e4a401e0004a99d580

UN Population Bar Chart

0 stars2🌍 Public
PPadoSensei
Last edited Mar 20, 2021
Created on Mar 18, 2021

This example visualizes the top 10 countries by projected 2020 population using a horizontal bar chart. The React app fetches UN population data from a CSV file, then uses d3.scaleBand and d3.scaleLinear to map countries and population values to SVG rectangles. Axis ticks and labels are generated with d3 scale methods, while the chart is rendered entirely through React’s declarative SVG elements.

AI-generated description

Creates Bar Chart from UN Population Data