The Margin Convention Outtake
✓ Published5🌍 Public
This interactive example uses React with D3 v5 to display the top 10 most populous countries from the UN World Population Prospects 2019 dataset as a minimal bar chart, lacking axes or labels. The SVG rendering maps each country’s population to a horizontal bar’s width using `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis, with the chart translated by a fixed margin. The visualization intentionally omits conventional chart furniture, highlighting the necessity of margins and axes in typical visualizations.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed