Activity8 - Vaishalikonda
✓ Published0🌍 Public
This visualization presents a horizontal bar chart of 2020 population data for 30 countries, sorted by country name, with bars encoded using SVG rectangles. The React-based application loads CSV data via D3’s `csv` method, transforms the population values, and scales them using `scaleBand` and `scaleLinear`. Axes are custom components drawing from D3’s `format` (with SI suffixes like "B" for billions) and tick generators. The chart includes axis labels and tooltips via SVG `<title>` elements, with styling applied through React components and CSS.
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