Activity6_Task1
✓ Published3🌍 Public
This bar chart displays the population of 20 countries in 2010, sorted by country name on the vertical axis with population values extending horizontally. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with SVG rendering. The chart loads CSV data from a GitHub repository using D3’s `csv` function, and includes formatted tick labels that abbreviate large numbers (e.g., converting "G" to "B" for billions) along with tooltips on each bar. The code demonstrates modular components for axes and marks, with styling applied through CSS classes.
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