Activity 6 Task 1
✓ Published0🌍 Public
A horizontal bar chart displays the top ten countries by population in the year 2000, using green rectangles scaled by a linear x-axis. The visualization is rendered as an SVG with React components, including reusable axis and mark components. It loads CSV data via D3’s `csv` function and applies `scaleBand` and `scaleLinear` for positioning. The chart includes formatted tick labels that convert billions to a readable format, and each bar contains a tooltip showing the exact population value.
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