activity6_question1
✓ Published0🌍 Public
This horizontal bar chart visualizes the population of the top 10 countries in the year 2000, with each bar’s length encoded by population value. A linear x-scale (`d3.scaleLinear`) handles the numeric axis with custom tick formatting that abbreviates millions as “B” for billions, while a band scale (`d3.scaleBand`) positions country labels on the y-axis. Light green rectangles are drawn using SVG `rect` elements. Data is loaded asynchronously from a GitHub-hosted CSV via `d3.csv`, and axes are rendered using `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionMIT Licensed