Data & D3
A bar chart displays the top 10 countries by 2020 population, sourced from a UN dataset loaded via d3.csv. React manages the component state, rendering an SVG that uses d3.scaleBand for country categories and d3.scaleLinear for population values, with gridlines generated from xScale.ticks(). The visualization updates asynchronously after data fetching, showing a loading message until the CSV is parsed.