Activity 8 - Q1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population figures for ten countries in the year 2000, using a bar length to encode each value. The chart is built with React and renders SVG elements, using D3 v5’s `scaleBand` and `scaleLinear` for positioning and scaling. Data is loaded asynchronously from a GitHub-hosted CSV file via D3’s `csv` parser. The code also demonstrates custom axis components and a tooltip that appears on hover through an SVG `<title>` element.
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