Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

UNPop

Public visualization

UNPop

0 stars1🌍 Public
Rrayking99
Last edited Jun 10, 2021
Created on Jun 10, 2021

This bar chart displays the top 10 countries by population for 2020, sourced from a UN population CSV. The visualization uses React to manage state and render an SVG, while D3 v6 handles data fetching via `csv()`, scaling with `scaleBand` and `scaleLinear`, and the `max` aggregation. Each country’s population is mapped to a rect’s width, with countries positioned along the y-axis. The chart highlights population magnitudes through horizontal bars, relying on D3’s declarative API for layout and React for component lifecycle.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed