Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Country population data

Public visualization

Viewing a saved revision (read-only)

63752fa9067b44b8bd45fb39ed9d9f9a

Country population data

0 stars1🌍 Public
Sstevensmithj
Last edited Apr 3, 2022
Created on Feb 7, 2022

A horizontal bar chart displays the top 10 countries by population for 2020, sourced from a CSV of UN population data. The chart maps country names to a D3 band scale on the y-axis and population counts to a linear scale on the x-axis. Built with React and rendered as SVG, it uses D3 v5 utilities to load the CSV and format tick labels in compact notation, with each bar’s tooltip showing the population formatted in billions.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.