🌍 Public
Viewing a saved revision (read-only)
f2d4becf4e0d4f8494064141acdab25c
Activity8_Question1.2
A horizontal bar chart displays the 20 most populous countries in 2010, with each bar labeled by country name and scaled by population in billions. The visualization uses React components with D3 v5 utilities, including `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded asynchronously from a CSV file via `d3.csv`, and SVG rectangles render the bars with tooltips showing formatted population values. Axes are built from custom React components that map D3 scales to SVG elements.
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.