🌍 Public
Viewing a saved revision (read-only)
42903a3f59334d1faa6d2ef4ca101f70
Task8_Question1.1
This bar chart displays the population of ten countries in the year 2000, sorted vertically by country name. The visualization uses React with D3 v5 scales, rendering SVG rectangles whose width encodes population values. The code leverages `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with data loaded from a CSV file via `csv()`. Tooltips appear on hover using the native SVG `<title>` element, and the x-axis labels are formatted using D3’s `format('.2s')` to abbreviate large numbers.
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.