🌍 Public
Viewing a saved revision (read-only)
ce05cc1491d942fbbe3b2900b710229a
Task8_Q1_1
A horizontal bar chart displays the population of ten countries in the year 2000, ranked by country name on the y-axis and population values on the x-axis. The chart uses D3 v5 scales, including `scaleBand` for the categorical axis and `scaleLinear` for the numeric axis, with React components rendering SVG rectangles for each bar. Tooltips show formatted population values using D3’s `format` function, while axis labels and tick marks are built with custom `AxisBottom` and `AxisLeft` components. Data is loaded from a CSV file via `csv` from D3.
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.