🌍 Public
Viewing a saved revision (read-only)
b30f0450f0b242e2ba8ffa0d46ecc556
Fork of The Margin Convention Outtake
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 descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.