🌍 Public
Viewing a saved revision (read-only)
3fe9d9de822e4512b1d56d9063751a47
Activity 6 task 1
This horizontal bar chart visualizes the populations of the world’s 20 most populous countries, ranging from China’s 1.37 billion down to the Democratic Republic of the Congo’s 64.6 million. Each steel-blue bar’s length is proportional to population, with countries ordered alphabetically along the vertical axis. The D3.js v7 code loads CSV data, multiplies the raw figures by 1,000 to reflect actual counts, and uses `d3.scaleBand` and `d3.scaleLinear` to position bars, while `d3.axisBottom` formats ticks with a custom tick label function that converts large numbers into billions.
AI-generated description