🌍 Public
Viewing a saved revision (read-only)
162b992b990a48ce8b7761ab38f1518f
Activity6_Task 1
This bar chart displays the top 30 countries by population in 2020, using horizontal bars sorted by country name. The visualization uses React components to render SVG elements, with D3 v5 scales (scaleBand for the y-axis and scaleLinear for the x-axis) managing coordinate mapping. Population values are loaded from a CSV file and formatted with a custom tooltip using D3's format function. The chart includes styled axes, hover effects, and a maximum domain slightly exceeding the largest population value.
AI-generated description