Activity6_Question 1
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the 2010 populations of 20 countries, with each bar labeled by country name. The visualization uses React to render SVG elements, while D3 v5 provides the `scaleBand` and `scaleLinear` functions for positioning bars, and the `format` function to abbreviate large population values. Data is loaded from a CSV file using D3’s `csv` method, and hover tooltips display the formatted population value for each bar.
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