🌍 Public
Viewing a saved revision (read-only)
6dc293929b11446d9dae825951679696
Tutorial-1Activity-6
This horizontal bar chart displays the 2020 population for 30 countries, using green bars to represent each nation's total. The data is loaded from a GitHub-hosted CSV file, which is processed with the `d3.csv` function and formatted with `d3.format` to convert large numbers into readable abbreviations like "1.2B". Built with React and rendered as SVG, the visualization employs `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the continuous x-axis, with blue tick lines and custom axis labels styled via CSS.
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.