Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Margin Convention

Public visualization

Viewing a saved revision (read-only)

2f23c8b1361d4a669a3549dadce0ee1f

Margin Convention

0 stars1🌍 Public
Ttrissentety
Last edited Feb 5, 2023
Created on Feb 5, 2023
Forked from Pathetic Bar Chart

This visualization displays the top 10 most populous countries as horizontal bars using D3 scales and React. It loads UN population data from a CSV via `d3.csv` and renders SVG rectangles with `scaleBand` for country positioning and `scaleLinear` for population values. The chart applies a margin convention by translating the SVG group to ensure padding around the plot area.

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.