🌍 Public
Viewing a saved revision (read-only)
4773d19b420f43a2bfea8460918c62d3
activity6_Question1.1
This visualization is a horizontal bar chart displaying the population of ten countries in the year 2000, with bars sorted by country name and labeled with a formatted tick axis (e.g., “1.2B” for billions). The chart uses React components to render SVG elements, with D3 v5 functions such as `scaleBand`, `scaleLinear`, and `max` to compute scales and domains. Data is loaded asynchronously from a remote CSV file using D3’s `csv` parser, and each bar includes a native SVG `<title>` tooltip showing the population value.
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.