🌍 Public
Viewing a saved revision (read-only)
9c89d2ff42e04662a6c0ee302863910b
TASK1
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000, ranked by country name on the y-axis and population in billions on the x-axis. It renders as an SVG using React components and D3 v5 scales, with d3.scaleBand for bars, d3.scaleLinear for the axis, and d3.format for tick labels (e.g., “1.2B”). Data is loaded via d3.csv from a GitHub-hosted dataset, with hover tooltips displaying formatted population values.
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.