Activity 6_Task 1
✓ Published1🌍 Public
A horizontal bar chart displays the 2020 populations of 30 countries, sorted by country name along the y-axis, using a React and D3 v5 stack. The visualization imports `scaleBand` and `scaleLinear` from D3 to map country names and population values to SVG rectangles, with axes generated by custom `AxisBottom` and `AxisLeft` components. Data loads from a CSV via `d3.csv` and formats tick labels with `d3.format`. Hovering over a bar reveals its exact population through a native SVG `<title>` tooltip.
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.
MIT Licensed