Activity 6 question 1_2
✓ Published0🌍 Public
This bar chart displays the population of 20 countries in 2010, using horizontal bars ordered by country name. The visualization loads CSV data from GitHub via `d3.csv` and renders as an SVG using React components (AxisBottom, AxisLeft, Marks) with scales from `d3.scaleBand` and `d3.scaleLinear`. The x-axis uses `d3.format` to abbreviate population values (e.g., converting gigabytes to billions). Hovering over each bar reveals the exact population through an SVG `<title>` tooltip.
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.
MIT Licensed