🌍 Public
Viewing a saved revision (read-only)
e3efed932b5a45b599c74f5ddb40e2b0
activity-6_Task 1
This horizontal bar chart displays the population of ten countries for the year 2020, drawn as SVG rectangles using React. The chart uses D3 v5’s `scaleBand` and `scaleLinear` for axes and scales, with `format('.2s')` for tick labels. Data is loaded from a CSV file via D3’s `csv` function, then rendered with custom `AxisBottom`, `AxisLeft`, and `Marks` components.
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.