Task1_Q2
✓ Published0🌍 Public
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 descriptionMIT Licensed