🌍 Public
Viewing a saved revision (read-only)
1c68157f6f6e45e4bf4d58a12a41502a
Activity 6_Task1
A horizontal bar chart displays population data for various countries in 2020. The visualization uses D3’s `scaleBand` and `scaleLinear` to map country names and population values, with axes rendered as custom React components. The bar lengths encode population magnitude, and tick labels use D3’s `format` function to abbreviate large numbers (e.g., “1.2B”). The chart is rendered as SVG within a React application, drawing data loaded from an external CSV file.
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.