Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of The Margin Convention Outtake

Public visualization

Fork of The Margin Convention Outtake

0 stars1🌍 Public
XXizhiW
Last edited Jan 17, 2022
Created on Jan 17, 2022

This example displays the top 10 most populous countries as a horizontal bar chart using React and D3 v5. The bars render in SVG, with country names on the y-axis and population counts on the x-axis, including tick marks and labels. The code uses `d3.csv` to load UN World Population Prospects 2019 data, `scaleBand` for the categorical y-axis, and `scaleLinear` for the quantitative x-axis. The visualization omits axes through the margin convention, focusing only on the plotted rectangles and their corresponding tick labels.

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