UN data
✓ Published1🌍 Public
This bar chart displays the top ten countries by population in 2020, based on UN population data loaded from a CSV file. The visualization uses React for component structure and D3 v7 for scales, axes, and SVG rendering. The `scaleBand` positions the country labels on the y-axis, while `scaleLinear` maps population values to bar widths, with gridlines and tick labels generated from the x-scale. The data is fetched asynchronously via `csv()` and sorted alphabetically before being rendered as SVG rectangles.
AI-generated descriptionA bare minimum HTML page.
MIT Licensed