Fork of Task6_Question1_2_PR
✓ Published0🌍 Public
This visualization shows the population of 20 countries in 2010, using horizontal bars ranked by population size. Data is loaded from a CSV file via `d3.csv` and processed as an ES6 module with the `useData` hook. The React app renders an SVG chart, mapping categorical country names with `scaleBand` on the y-axis and a linear population scale on the x-axis. D3 v5 provides formatting, while custom Axis components generate styled ticks. The bar widths encode population values, with a tooltip displaying the formatted measure 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