Activity 6_Task1 Question2
✓ Published0🌍 Public
This horizontal bar chart displays the population of 20 countries in 2010. The bars are rendered as SVG rectangles using React, with a green fill and blue tick lines. The chart uses D3's `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `format` to abbreviate large numbers. Data is loaded from a CSV file via `d3.csv`, and hover tooltips show the formatted population values.
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