Skip to main content
100%

activity_6 Task2

✓ Published0🌍 Public
Hhui249378@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025

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 description
MIT Licensed

Similar vizzes