Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
Aaniosindustries
Last edited Dec 18, 2021
Created on Dec 17, 2021
Forked from Pathetic Bar Chart

This example displays the top five most populous countries as a rudimentary bar chart with no axes or labels. The visualization uses React to render an SVG, with React hooks managing state and data loading. The code leverages D3 v5's `scaleBand` for the categorical y-axis positioning and `scaleLinear` for the quantitative x-axis scaling, pulling data from the United Nations World Population Prospects 2019 dataset. Bars are drawn as SVG `<rect>` elements, positioned using the computed scales.

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