activity6-Task1
✓ Published0🌍 Public
This bar chart displays the population of 30 countries in the year 2020, ranked along the y-axis and scaled proportionally to population on the x-axis. It loads CSV data from a GitHub raw URL using the `csv` function from d3.v5, then renders the visualization as SVG elements within a React component. The chart uses `scaleBand` for the categorical country axis, `scaleLinear` for the continuous population axis, and includes native SVG `<title>` tooltips on each rect mark. Both axes are custom-built components that generate tick lines and text labels.
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