🌍 Public
Viewing a saved revision (read-only)
b0682e86d079406ab6fc0e433760d1be
activity6_1.2
A horizontal bar chart displays the 2010 population estimates for twenty countries, sourced from a CSV file. Built with React and D3 v5, it uses `scaleBand` for the categorical country axis and `scaleLinear` for the population axis, rendering green SVG rectangles with tooltips formatted in billions. The chart includes styled axes, a loading state, and a population label, with the D3 `csv` loader fetching and preprocessing the data.
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.