Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
LLucas Fiorini
Last edited Jun 12, 2022
Created on Jun 12, 2022
Forked from Pathetic Bar Chart

This example displays the top five most populous countries as a set of bare rectangular bars, with no axes or labels, loaded from the United Nations World Population Prospects 2019 dataset. Using React state and effects, it fetches the CSV data with `d3.csv`, truncates it to five rows, and renders the bars as SVG `<rect>` elements. The bar widths are scaled by population via `scaleLinear`, while the vertical positions use `scaleBand`, producing a minimal, unadorned chart.

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.

MIT Licensed

Similar vizzes