🌍 Public
Viewing a saved revision (read-only)
a088b8cf3d0d447fbc44035e1a8fae4d
Fork of Task1_activity7
This example shows a horizontal bar chart of population figures for ten countries in the year 2000, sorted by country name. The visualization uses React to render SVG elements, with D3 v5 scales (d3.scaleBand and d3.scaleLinear) positioning the bars and axes. Data is loaded via d3.csv from a GitHub-hosted CSV file, and popup tooltips appear on hover using SVG `<title>` elements. The chart applies D3’s d3.format with the '.2s' SI prefix to abbreviate population values, such as converting billions to "B" labels.
AI-generated descriptionA demonstration of how to start using D3 version 6.