🌍 Public
Viewing a saved revision (read-only)
db745d1599954940af429ab2d5408f06
Activity-6
This bar chart displays the population figures for 30 countries in 2020, using green bars arranged along a categorical y-axis with a quantitative x-axis. The visualization is built with React and D3 v5, rendering SVG elements through custom components for axes and marks. Population data is loaded from a remote CSV file using D3's `csv` function. The x-axis uses D3's `format` function to abbreviate large numbers, converting values to billions with the letter "B".
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.