Activity6_tutorial
✓ Published0🌍 Public
This bar chart displays the 2020 population estimates for 30 countries, sorted by country name. The visualization uses React with D3 v5’s `scaleBand` and `scaleLinear` to map data to SVG rectangles, with axes built from custom `AxisBottom` and `AxisLeft` components. Population values are loaded from a remote CSV and formatted with a SI prefix, replacing ‘G’ with ‘B’ for billions. Tooltips reveal exact values via SVG `<title>` elements.
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