Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Refactored Bar Chart

Public visualization

Fork of Refactored Bar Chart

0 stars0🌍 Public
Cchar0496
Last edited Apr 16, 2022
Created on Apr 16, 2022

A bar chart displays the top 10 most populous countries for 2020, sourced from the United Nations World Population Prospects 2019 via a CSV file. The visualization uses React components with D3 v5 scales and shapes, rendering bars as SVG rectangles. The code constructs a band scale for countries and a linear scale for population, with custom React components for axes and marks, loading data through a `useData` hook that fetches and parses the CSV.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed