activity 6_Task 1
✓ Published0🌍 Public
This visualization shows the 2020 population of 30 countries as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. The bars are colored a light green, with blue axis ticks and a labeled x-axis in billions. The code uses React hooks—`useState`, `useCallback` and `useEffect`—to load CSV data via `d3.csv` from a GitHub repository, then renders the chart with `d3.scaleBand` and `d3.scaleLinear` as SVG elements, formatting tick labels using `d3.format`.
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