🌍 Public
Viewing a saved revision (read-only)
3bb4c0f2691d4c54aa4faeea434bea57
activity 6_Task 1
This example displays a horizontal bar chart ranking the populations of ten countries for the year 2000. The visualization encodes population values as bar lengths on a linear scale, with country names listed along the vertical axis. The chart is rendered as an SVG using React and D3 v5, with scales created via `scaleBand` and `scaleLinear`, and axes built from tick components. Data is loaded asynchronously from a CSV file using D3's `csv` function.
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.