UN Data
This bar chart visualizes the 2020 population estimates for the top 10 countries from the UN Population dataset. Each bar represents a country, with length proportional to population, and the country names are listed on the y-axis to facilitate comparison. The visualization is rendered as SVG using React, with D3's `scaleBand` and `scaleLinear` for coordinate mapping. The code loads the CSV data with `d3.csv`, and the components (`AxisBottom`, `AxisLeft`, `Marks`) generate the chart elements, with React state managing the data lifecycle.