🌍 Public
Viewing a saved revision (read-only)
d765569584bb4d37aad8b13631490cf3
Task1_Q2
This chart displays the populations of the top 20 countries in 2010 as horizontal bars, with the D3.js `csv` module loading data from a raw GitHub dataset. The React component uses `scaleBand` and `scaleLinear` to map country names and population values to the SVG canvas, with `AxisBottom` and `AxisLeft` rendering the tick marks. The bar marks, colored light green, include a native SVG `<title>` tooltip that formats the population values using D3's `format('.2s')` function.
AI-generated description