🌍 Public
Viewing a saved revision (read-only)
cdbc00fc716d4ca18f0be473e4881912
Tutorial 1 Question 1
This horizontal bar chart displays population figures for ten countries in the year 2000, sorted alphabetically by country name. The visualization uses React components with D3 scales—specifically `scaleLinear` for the x-axis and `scaleBand` for the y-axis—to render SVG rectangles. Data is loaded from a CSV file using d3.csv, with population values converted from thousands. The chart includes formatted axis ticks using d3.format, axis labels, and tooltips that display population values on hover.
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.