🌍 Public
Viewing a saved revision (read-only)
0f9a835247c849a8b90b301db5e6ebaa
Task8Question1
This example presents a horizontal bar chart of population data for the top 10 countries in the year 2000, sourced from a CSV file loaded via `d3.csv`. The visualization uses React with D3 v5, rendering SVG bars through the `scaleBand` and `scaleLinear` scales, with axes generated by custom `AxisBottom` and `AxisLeft` components. Population values are formatted with `d3.format` and hover tooltips are provided via SVG `<title>` elements.
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.