Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

dv2020-ep22-viz21 - bar chart, margin convention

Public visualization

dv2020-ep22-viz21 - bar chart, margin convention

0 stars1🌍 Public
Zzach b.
Last edited Mar 15, 2023
Created on Mar 15, 2023

A horizontal bar chart ranks the 20 most populous countries by 2020 population estimates from UN World Population Prospects 2019. D3’s `scaleBand` positions bars vertically, while `scaleLinear` maps population values to bar widths. The React component loads CSV data via `d3.csv`, sorts it descending, and renders an SVG with the classic margin convention, translating a group for axes-free inner dimensions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed