Activity 6 Q1.2
✓ Published0🌍 Public
This example displays a horizontal bar chart comparing the populations of 20 countries in 2010, with the countries sorted along the y-axis and population values along the x-axis. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format` to abbreviate tick labels (e.g., converting billions to “B”). Data is loaded as CSV via D3’s `csv` function from a remote gist.
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