🌍 Public
Viewing a saved revision (read-only)
38b9f988b6b24edca5d8ffe2f571d84d
Question 1
This visualization displays the population of ten countries in 2000 as a horizontal bar chart, using a green fill for each bar. The React app loads data from a CSV file via `d3.csv` and maps country names to a `scaleBand` and population values to a `scaleLinear`. Axes are rendered with custom `AxisBottom` and `AxisLeft` components, and tooltips on each bar use `d3.format` to show abbreviated 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.