Activity_6_Question1.1
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the population of ten countries in the year 2000, using a dataset loaded from a GitHub-hosted CSV file. The visualization uses React components to render SVG elements, with D3 v5 scales (`scaleBand` and `scaleLinear`) handling the positioning and sizing of the bars. Axis components generate tick marks and labels, while circular tooltips appear on hover via SVG `<title>` elements. The chart formats population values with D3's `format('.2s')` to display numbers in billions.
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