Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Refactored Bar Chart

Public visualization

Fork of Refactored Bar Chart

0 stars0🌍 Public
Ssmeiyin
Last edited Mar 19, 2021
Created on Mar 18, 2021

This example displays the top 10 most populous countries as a horizontal bar chart, with country names on the left axis and population values along the bottom axis. It uses React components to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` for positioning and scaling, and manually drawn axis components (`AxisBottom`, `AxisLeft`) to avoid D3 axis helpers. Data is loaded asynchronously via `useData` and D3’s `csv` from the United Nations World Population Prospects 2019 dataset, with the chart updating once the data arrives.

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