🌍 Public
Viewing a saved revision (read-only)
50fdaac62a6c49d499f4e9958ef028c2
activity_6 Task2
This horizontal bar chart displays the top 10 countries by population in the year 2000, with countries listed on the y-axis and population values on the x-axis. Built with React and D3, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis, rendering bars as SVG `<rect>` elements. Data is loaded asynchronously from a CSV file using D3's `csv` function, and axis labels are formatted using `format('.2s')` to abbreviate large numbers.
AI-generated descriptionMIT Licensed