Fork of Activity 8 Task 1 Q1.2
✓ Published0🌍 Public
A horizontal bar chart displays the populations of twenty countries in 2010, sorted by country name. The visualization is built with React and renders SVG elements, using D3 scales (`scaleBand` and `scaleLinear`) to map data to positions. Data is loaded asynchronously from a CSV file via D3’s `csv` function, with population values converted from thousands. Axes and marks are implemented as reusable React components, and the bars include native SVG `<title>` elements for tooltips.
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