Skip to main content
100%

UN data

✓ Published1🌍 Public
JJosh Zalcman
Last edited Mar 8, 2022
Created on Mar 8, 2022

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 description

A bare minimum HTML page.

MIT Licensed

Similar vizzes