🌍 Public
Viewing a saved revision (read-only)
df37583eccad4426bd1f25143a8f587b
Task 8 Q1B
This bar chart displays the population of 20 countries in 2010, with countries on the y-axis and population values on the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Data is loaded from a CSV file via `d3.csv` and rendered as SVG rectangles. The chart includes custom axis components, tick formatting that converts values to billions, and native tooltips using 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.