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
DDamian Grzanka
Last edited May 3, 2021
Created on May 3, 2021
Forked from Pathetic Bar Chart

This example presents the top 10 most populous countries as a minimal bar chart, entirely devoid of axes, labels, or scale indicators. The visualization, rendered as SVG, computes bar lengths from population values using D3’s `scaleLinear` for the width and `scaleBand` for vertical placement. Data loads asynchronously from a United Nations World Population Prospects 2019 CSV via D3’s `csv` function, then is sliced to the top ten rows. The React `App` component manages state changes, while bars are drawn as simple `<rect>` elements within an SVG canvas.

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