Skip to main content
100%

The Margin Convention

✓ Published1🌍 Public
Ccoltonjcox92
Last edited Jan 28, 2022
Created on Jan 28, 2022

This example presents the top 10 most populous countries as a bar chart, deliberately omitting axes and labels to highlight the importance of margins in visualization layout. Built with React and D3 v5, it uses `scaleBand` for the y-axis positioning and `scaleLinear` for bar widths, with data from the United Nations World Population Prospects 2019. The SVG rendering applies a 20-pixel margin on all sides via a translated `<g>` element, demonstrating how padding frames the chart area. The visualization intentionally looks incomplete to emphasize that proper margins are a foundational convention for readable charts.

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.

MIT Licensed

Similar vizzes