Activity 6 Question 1.1
✓ Published0🌍 Public
This visualization displays the populations of ten countries in the year 2000 using a horizontal bar chart. The bars are drawn as SVG rectangles, with each country’s name shown on the y-axis and population values on the x-axis, formatted in billions. The code uses React to manage components, while D3 v5’s `scaleBand` and `scaleLinear` handle the axes and data scaling. The dataset is loaded via the `csv` function from a GitHub-hosted CSV file. Hovering over a bar reveals its exact population through a native SVG `<title>` tooltip.
AI-generated descriptionMIT Licensed