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 stars1๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed