Fork of activity 6_ Q1.1
✓ Published1🌍 Public
This example displays a horizontal bar chart of population data for ten countries in the year 2000. A React functional component renders SVG elements, using D3’s `scaleBand` and `scaleLinear` to position the bars and axes. The chart loads CSV data via `d3.csv` from a GitHub repository, formats the tick labels with `d3.format`, and includes tooltips on each bar using SVG `<title>` elements. Axis components are built as separate ES6 modules for bottom and left orientations.
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