🌍 Public
Viewing a saved revision (read-only)
392ff850817e496aa09bca05d7d8ab47
Fork of Activity6_Task 1
This example presents a horizontal bar chart ranking the top 30 countries by 2020 population. The React-based visualization uses D3’s `scaleLinear` and `scaleBand` to map values and categories, with `axisBottom` and `axisLeft` rendering the axes. Data is loaded via `d3.csv` from a remote Gist, sorted by population, and rendered as SVG rectangles. The chart includes a clear axis label indicating population in millions, with the x-axis formatted using tick formatting to display values in that unit.
AI-generated description