Margin Convention
✓ Published0🌍 Public
This example shows the top 10 most populous countries as a horizontal bar chart with gridlines but no axes or labels. React manages the interface, while D3 v5's `csv`, `scaleBand`, and `scaleLinear` handle data loading and scaling. The chart renders as SVG, with country names on the y-axis and population values on the x-axis, using margins to position the inner plot area. Data comes from the United Nations World Population Prospects 2019 dataset.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed