Skip to main content
100%

United Nations Bar Chart - Refactored

✓ Published1🌍 Public
RRichardPearce60
Last edited Feb 13, 2022
Created on Jan 30, 2022

A horizontal bar chart displays the top 10 countries by 2020 population, using United Nations data loaded via D3's `csv` and rendered as SVG through React components. Population values from the CSV are parsed and converted to counts, with a linear scale mapping them to bar widths and a band scale for country positions. The visualization includes formatted axes with tick labels, a population axis label, and tooltips showing abbreviated values via D3's `format`. Custom React components (`AxisBottom`, `AxisLeft`, `Marks`) structure the chart, while D3 v7 handles scales, data loading, and formatting.

AI-generated description
MIT Licensed

Similar vizzes