🌍 Public
Viewing a saved revision (read-only)
0f9c9c560fe649f9818a9fd549b4db15
activity 6 tutorial1
A horizontal bar chart displays 2020 population estimates for 30 countries, with green bars extending from a shared origin and blue axis lines. The visualization uses D3 scales (scaleBand and scaleLinear) to map country names and population values to SVG rectangles, with formatted tick labels converting billions from D3's SI notation. React components render the chart, loading data via d3.csv from a GitHub-hosted CSV file, and each bar includes a native SVG tooltip showing the population value on hover.
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.