Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

UN population

Public visualization

UN population

0 stars0๐ŸŒ Public
OOscar Muindi
Last edited Apr 30, 2023
Created on Apr 29, 2023

This example renders a horizontal bar chart of the top 10 most populous countries using UN population data for 2020. The visualization uses D3 v7 scales (`scaleBand` for countries, `scaleLinear` for population) within a React 18 component, drawing SVG rectangles whose widths encode population values. Grid lines and axis tick labels are generated from the linear scale's ticks, with country names positioned along the y-axis. The data is loaded asynchronously via `d3.csv` from a GitHub Gist.

AI-generated description

A program that renders Bar graph of UN population UN Population-2019

Comments

Sign in to join the discussion.

MIT Licensed