activity 6_Task 1
✓ Published1🌍 Public
A horizontal bar chart displays the top 30 countries by 2020 population, with bars extending rightward from a shared baseline. The React application loads CSV data from a GitHub repository using D3’s `csv` function, then renders SVG rectangles positioned by `scaleBand` and `scaleLinear`. Custom React components like `AxisBottom`, `AxisLeft`, and `Marks` handle ticks and bar drawing. Population values are formatted with D3’s `format` function and tooltips appear via SVG `<title>` elements. The chart includes blue axis lines and light green bars, with an "POPULATION-2020" axis label.
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