Activity 6 task 1
✓ Published0🌍 Public
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 descriptionMIT Licensed