Activity-8_Question-1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart of country populations for the year 2000, using a dataset loaded via `d3.csv` from a GitHub repository. It renders the visualization as an SVG using React, with bars encoded using `rect` elements. The chart employs D3 scales (`scaleBand` and `scaleLinear`) to map data to coordinates, and includes custom axes built with `AxisBottom` and `AxisLeft` components. Tooltips are provided via 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