🌍 Public
Viewing a saved revision (read-only)
9ca1af3b8ca74c64a8f3a5f18e6464fa
Task 8 question 1
This interactive bar chart displays population estimates for ten countries in the year 2000, using a horizontal layout with country names on the y-axis. The visualization is built with React and D3 v5, using `scaleBand` for the categorical axis and `scaleLinear` for the population values. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, with population values multiplied by 1,000. The SVG rendering includes custom `AxisBottom` and `AxisLeft` components, while `Marks` generates the bars with tooltips formatted using D3’s `format` API.
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.