Activity 6_task 1_q1.2
✓ Published0🌍 Public
A horizontal bar chart displays the 20 most populous countries in 2010, with country names on the y-axis and population on the x-axis. The visualization uses React with D3 v5's `scaleBand` and `scaleLinear` to position bars, while custom React components render axes and marks as SVG rectangles. Data loads from a remote CSV file via `d3.csv`, with population values multiplied by 1000 and formatted using `d3.format`. Tooltips show exact population values through 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.
MIT Licensed