🌍 Public
Viewing a saved revision (read-only)
f538e923f80f4252ba826419d8604500
Activity8_Question1
This visualization displays the population of ten countries in the year 2000 as a horizontal bar chart. Each bar’s length is proportional to population value, with country names on the y-axis and a formatted population scale (using abbreviations like “B” for billions) on the x-axis. The chart uses React components with d3.scaleBand and d3.scaleLinear for positioning, and d3.format for tick labels. Data is loaded asynchronously from a CSV file using d3.csv, and rendered as SVG rectangles with native tooltips.
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.