🌍 Public
Viewing a saved revision (read-only)
5f0303b1be9b4708a64a00c36775cdde
DV TASK-8(Q1)
This bar chart ranks the top ten countries by population for the year 2020, using horizontal bars to compare values. The visualization is built with React and D3 v5, rendering SVG elements through reusable components for axes and marks. Data is loaded via `d3.csv` from a GitHub repository, with population values formatted using `d3.format` to abbreviate large numbers with "B" for billions. The chart includes a bottom axis with tick lines and a left categorical axis for country names.
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.