🌍 Public
Viewing a saved revision (read-only)
879f1a689ee242c1bf0ae93a29390b6a
ACTIVITY6 Q1
This example shows a horizontal bar chart of the ten most populous countries in the year 2000, sorted in descending order. The visualization is built using React and the D3.js library (d3.v7), rendering bars as SVG rectangles. Data is fetched from a remote CSV file, parsed to convert population values from strings like "M" to actual numbers, and filtered to the top ten. The chart uses a linear x-scale for population and a band scale for country names, with axes generated by D3's `d3.axisBottom` and `d3.axisLeft`.
AI-generated description