🌍 Public
Viewing a saved revision (read-only)
9887462e3e0a4045a6c1ecedc22a02df
Activity6_Task1_Q1.2
A horizontal bar chart shows the populations of 20 countries in 2010, sorted by country name, with each bar’s length scaled linearly by population and labeled with a shortened numeric format that converts millions to billions. The chart uses D3 v7’s `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to construct the axes and marks, with SVG rectangles drawn via `Marks.js` and data loaded from a remote CSV using `d3.csv`. The visualization highlights the relative population magnitudes across countries with a light green fill and blue tick lines.
AI-generated description