Fork of Activity 6_Task 1 Question 1.1
✓ Published0🌍 Public
This example displays a horizontal bar chart of the top 10 countries by population in 2000, using yellow bars with blue axis ticks on a white background. The React component loads CSV data from a GitHub repository, transforms the population values, and renders SVG elements using D3 v5 scales (scaleBand and scaleLinear) imported directly from the d3 package. The four custom modules—AxisBottom, AxisLeft, Marks, and useData—demonstrate local ES6 module imports, while a native SVG title element provides interactive tooltips for each bar.
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