Activity 7
✓ Published0🌍 Public
This visualization displays the top 20 countries by population in 2020 using a horizontal bar chart, rendered as SVG elements within a React application. The chart uses D3's `scaleBand` and `scaleLinear` to map country names and population values to visual positions, with a red-tinted axis and green bars. Population data is loaded via D3's `csv` function from a remote URL, and tooltips show formatted values using D3's `format` API. The chart includes custom axis components that label values with a "B" suffix for billions.
AI-generated descriptionBar chart- Displaying the top 30 countries with the most population in 2020
MIT Licensed