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
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.

Comments

Sign in to join the discussion.

MIT Licensed