Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

UN Population Bar Chart

Public visualization

Viewing a saved revision (read-only)

ba8beb4849d74598aa36d5c31fdc6f16

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