activity6_q2
✓ Published0🌍 Public
This horizontal bar chart displays the top 20 countries by population in 2010, using the d3.scaleBand and d3.scaleLinear API to map country names and population values to SVG rectangles. The data is loaded via d3.csv from a Gist, then sorted and filtered. The chart includes axes from AxisBottom and AxisLeft, with a lightgreen fill for each bar and dynamic tick formatting that converts large numbers to billions.
AI-generated descriptionMIT Licensed