Activity_6 Task 1
✓ Published0🌍 Public
This visualization displays the 2020 population for 30 countries using a horizontal bar chart. React renders the SVG, while D3’s `scaleBand` and `scaleLinear` position the bars and axes. Data loads from a CSV file via `d3.csv`, with population values formatted using `d3.format`. The `Marks` component draws rectangles, and native SVG `<title>` elements provide tooltips on hover.
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