🌍 Public
Viewing a saved revision (read-only)
28fc11a95f0d4fa59ac5879dd42141fb
activity6_Task1
This example displays a horizontal bar chart of the top ten countries by population in 2020, using data from the provided CSV file. The bars are sorted in descending order and colored steelblue. The visualization is built with D3 v6, using `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and SVG rendering. Axis components are created with `d3.axisBottom` and `d3.axisLeft`, while population values are formatted with `d3.format`. The data is loaded asynchronously via `d3.csv`.
AI-generated description