🌍 Public
Viewing a saved revision (read-only)
b9ad786f76e8483698f02f27c7915212
Activity6_quiz 1.1
This visualization shows a horizontal bar chart comparing the populations of the top 10 countries in the year 2000, sorted in descending order to highlight the most populous nations. The chart uses React components with D3 v7 scales—specifically `scaleLinear` for the x-axis and `scaleBand` for the y-axis—to map population values to bar widths and country names to bands. Data is loaded from a CSV file via `d3.csv` with a fallback to inline sample data, and bars are rendered as SVG rectangles with teal fill.
AI-generated description