activity 6_Task 1
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing the populations of ten countries for the year 2000. Using React and D3 v5, it loads CSV data via the `useData` hook, scales the bars with `scaleBand` and `scaleLinear`, and formats tick labels with `format`. The SVG renders through reusable `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.
MIT Licensed