Fork of Activity-6
✓ Published2🌍 Public
This fork of Activity-6 presents a horizontal bar chart that ranks the top 30 countries by their 2020 population, using data from a CSV file hosted on GitHub. The bars are drawn as SVG rectangles, with their widths scaled by population values and their vertical positions determined by a categorical y-scale. The visualization uses D3 v5 for data loading (via `d3.csv`) and scale construction, while React manages the component state and rendering. Axis components render tick marks and labels, and hovering over a bar reveals its exact population value through a native SVG `<title>` tooltip.
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