🌍 Public
Viewing a saved revision (read-only)
6c471cd3c9b74fc39317d71922d4001f
Task-1 Question 1.1
This bar chart displays the populations of ten countries in the year 2000, ranked vertically with horizontal bars. The visualization uses React and D3 v5, with `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded via `d3.csv` from a remote GitHub CSV source, and bars are rendered as SVG rectangles with tooltips formatted using D3’s `format('.2s')` to abbreviate large numbers. The axes are custom React components, and the styling includes green bars and blue tick lines.
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.