🌍 Public
Viewing a saved revision (read-only)
2e163f4c56714a6bba1d26a16003b54e
Activity6_Question1.2
This horizontal bar chart shows the populations of 20 countries in 2010, sorted by country name. The chart uses React with D3 v5, employing `scaleBand` for the y-axis positioning and `scaleLinear` for the x-axis population values. Data is loaded via `csv` from a GitHub-hosted CSV file, with population values converted from thousands. The visualization renders as SVG, with tick lines styled in blue and bars in green, and includes formatted axis labels using `format('.2s')`.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.