Activity6_task1_question2
✓ Published0🌍 Public
This horizontal bar chart displays the top 20 countries by population in 2010, sorted in descending order with population values mapped to bar length. The visualization uses D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with `d3.axisLeft` and `d3.axisBottom` rendering the axes. Data is loaded asynchronously via `d3.csv` from a remote gist, and the bars are drawn as SVG `rect` elements. Population values are formatted using `d3.format('.2s')` for compact tick labels.
AI-generated descriptionMIT Licensed