Activity_6_Task_1
✓ Published0🌍 Public
This example displays a horizontal bar chart of population estimates for 30 countries in 2020, sourced from a CSV file. The visualization uses React to render SVG elements and D3 v5 scale functions (`scaleBand`, `scaleLinear`, `max`, `format`) to map country names and population values to positions and bar lengths. Axes are drawn by custom components that generate ticks, and hovering over a bar reveals its formatted population value via a native SVG `<title>` element. The chart is styled with a light green fill and a blue axis color scheme.
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