🌍 Public
Viewing a saved revision (read-only)
66b78484b3574a898fdc52b9c67edf92
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