🌍 Public
Viewing a saved revision (read-only)
4632b98e5e734b62a1f25e789f9da8f2
Activity6_Question1
This visualization displays the populations of ten countries in 2010 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. Using React and D3 v6, the code employs `scaleBand` and `scaleLinear` for positioning, while `csv` loads data from a GitHub-hosted CSV file. SVG rectangles render the bars, with `format('.2s')` converting large numbers into abbreviated labels like "1.2B". The chart includes custom axis components and tooltips via SVG `<title>` elements.
AI-generated description