Activity-6_Question-1.1
✓ Published1🌍 Public
This example displays a horizontal bar chart comparing the population of ten countries in the year 2000, with bars rendered as SVG rectangles. The chart uses D3 v5 scales (`scaleBand` and `scaleLinear`) to map country names and population values, while React components (`Marks`, `AxisBottom`, `AxisLeft`) structure the visualization. Population data is loaded as CSV via `d3.csv` from a remote GitHub source. The x-axis labels use `d3.format` to abbreviate values, and hover tooltips show the formatted population via native SVG `<title>` elements.
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