Activity 7
✓ Published0🌍 Public
This example displays a horizontal bar chart of population data for 20 countries in 2020, using green bars sorted by country name along a categorical y-axis and a linear x-axis with tick labels formatted in billions. Built with React and D3 v5, it loads CSV data via `d3.csv`, scales with `scaleBand` and `scaleLinear`, and renders SVG bar marks, axes, and a title using local ES6 modules for reusable axis and mark components.
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