Activity6Task1
✓ Published0🌍 Public
A horizontal bar chart displays the 2020 population for 30 countries, with bars extending from a shared baseline and country names on the y-axis. The visualization uses D3 v5 scaleBand and scaleLinear for positioning, with data loaded via d3.csv from a GitHub-hosted CSV file. React renders SVG elements, while helper components AxisBottom, AxisLeft, and Marks generate ticks and rectangles. Hovering reveals formatted population values through SVG title tooltips, and the x-axis uses SI-format abbreviations that convert "G" to "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.
MIT Licensed