Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Eeleshaky
Last edited May 5, 2022
Created on May 4, 2022
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries in 2020 as a bare bar chart without any axes, labels, or scales shown. The data comes from the United Nations World Population Prospects 2019 dataset, loaded via `d3.csv`. The visualization uses React with `useState` and `useEffect` hooks to fetch and store the data, then renders SVG rectangles positioned with `d3.scaleBand` and sized by `d3.scaleLinear`. Red gridlines are drawn at each tick of the x-axis using D3’s `ticks()`, though no tick labels appear.

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