Activity6_Task1
✓ Published0🌍 Public
This example displays a horizontal bar chart ranking the populations of 30 countries for 2020. It is built with React and renders to SVG. The chart uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and `d3.format` to abbreviate tick labels (e.g., converting billions to “B”). Data is loaded asynchronously from a remote CSV file using `d3.csv`, and each bar includes a native SVG `<title>` element for hover tooltips.
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