🌍 Public
Viewing a saved revision (read-only)
c10597d182b24673b05f2a368709794d
Fork of Activity 6_T-1 Q-2
This visualization displays the top 20 countries by 2010 population using a horizontal bar chart rendered with React and SVG. D3’s scaleBand and scaleLinear position the bars, while custom React components generate axes and marks. Population values from the CSV are formatted with d3.format (e.g., “1.2B”). The chart includes a title, axis labels, and hover tooltips showing formatted values.
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.