The Margin Convention
✓ Published1🌍 Public
This example shows country populations from the United Nations 2019 dataset as a horizontal bar chart, displaying the top 80 entries. The rendering uses React with SVG elements, where each country’s bar length is scaled linearly by population. The code employs D3 utilities like `csv` for data loading, `scaleBand` for country positioning, and `scaleLinear` for population values, while respecting a standard margin convention to offset the chart within the SVG canvas.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed