Activity 6_T-1 Q-1
✓ Published1🌍 Public
A horizontal bar chart displays the top 10 countries by 2000 population, based on CSV data loaded via `d3.csv`. The React app uses `d3.scaleBand` for country categories and `d3.scaleLinear` for population values, rendered as SVG `<rect>` elements. D3's `format` function converts axis tick labels, and custom React components (`AxisBottom`, `AxisLeft`, `Marks`) structure the visualization. Tooltips show formatted population values, with the chart titled "Top 10 countries population."
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