🌍 Public
Viewing a saved revision (read-only)
524c580c8ca6458f8e912b21b19ead67
Activity6_Firoze
This bar chart displays the population of 20 countries in 2010, using horizontal bars sorted by country name. Built with React and D3 v5, it loads CSV data from a GitHub repository and renders SVG rectangles. The chart uses `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and custom `AxisBottom` and `AxisLeft` components. Tooltips show formatted population values via SVG `<title>` elements, with axis labels formatted using D3’s `format` function.
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.