Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published1🌍 Public
KKaiXuan Chin
Last edited Aug 5, 2021
Created on Aug 5, 2021
Forked from Pathetic Bar Chart

This example displays the top 10 most populous countries as a bar chart that uses country names as the y-axis labels and numeric population values for the x-axis, but omits axis lines and titles. It loads United Nations World Population Prospects 2019 data using `d3.csv`, then applies React state and hooks to render SVG bars. The visualization uses `d3.scaleBand`, `d3.scaleLinear`, and `d3.max` to map the data, while `d3.ticks` generates gridlines.

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