Activity6_Question1.1
✓ Published0🌍 Public
A horizontal bar chart displays the populations of ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. The visualization uses React to render SVG elements, with D3 v5 providing the `scaleBand`, `scaleLinear`, and `max` functions for chart construction. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and each bar shows a hover tooltip with the formatted population count. The bottom axis labels use D3's `format` to convert values from billions to abbreviated strings.
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