🌍 Public
Viewing a saved revision (read-only)
34ea93e0746e4742be958181a4a00b07
Q1.1
A horizontal bar chart compares the year-2000 populations of ten countries, using data from Activity6_Population.csv. The chart uses D3 v7 to load and parse the CSV, filtering rows for the year 2000. A `d3.scaleLinear` maps population values to the x-axis, while a `d3.scaleBand` positions the categorical country labels on the y-axis. Rectangles are appended and sized based on the scaled population values, with axis labels and tick formatting applied via `d3.axisBottom` and `d3.axisLeft`.
AI-generated description