🌍 Public
Viewing a saved revision (read-only)
3651a5bc286c4ac7b5108561567274a2
Activity6_question1.1
A horizontal bar chart displays the population of ten countries for the year 2000, ranked by country, with each bar's length proportional to population. The visualization uses React with D3 v5's `scaleBand` and `scaleLinear` to map countries and population values to SVG coordinates. Data is loaded from a CSV via `d3.csv` and filtered to the first ten rows. Native SVG `<title>` elements provide tooltips, while axes are rendered through custom React components that generate ticks and labels.
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.