Activity 6_Task 1 (question 2)
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for 20 countries in 2010. The chart maps country names to the y-axis and population to the x-axis, with light green bars and blue tick marks. It uses React components with D3 v5 scales (`scaleBand`, `scaleLinear`), `csv` for data loading from a GitHub-hosted CSV, and SVG rendering. The x-axis labels are formatted using D3’s `format` function with SI prefixes (e.g., “B” for billions), and tooltips display the formatted population via an SVG `<title>` element.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed