Activity6_task1.1
✓ Published1🌍 Public
A horizontal bar chart displays the top ten countries by population in the year 2000, using a dataset loaded via the `d3.csv` method from a GitHub-hosted CSV file. The visualization renders as an SVG in a React app, with bars drawn as `rect` elements positioned by `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the population value axis. Custom React components generate the axes and marks, while `d3.format` styles tick labels in billions. A native SVG `title` element provides a tooltip showing each bar’s exact value.
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