Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pathetic Bar Chart

Public visualization

Fork of Pathetic Bar Chart

0 stars0🌍 Public
SShreyansh shrey
Last edited Aug 31, 2021
Created on Aug 31, 2021
Forked from Pathetic Bar Chart

This example visualizes the top 10 most populous countries as a bar chart with no axes, intentionally rendered as a "pathetic" chart lacking scales or labels. It uses React to manage state and render SVG rectangles, with D3 v5’s `csv`, `scaleBand`, and `scaleLinear` to load and scale the population data from the United Nations World Population Prospects 2019 dataset. The bar widths represent each country’s 2020 population, while the y-axis positioning uses a band scale for country names. The chart appears after a brief loading state, displaying only colored rectangles without any reference lines or tick marks.

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