Question_1(b)
✓ Published0🌍 Public
This visualization shows the population of 20 countries in the year 2010 as a horizontal bar chart. The bars are rendered as SVG rectangles using React components, with the x-axis scaled linearly and the y-axis using a band scale for country names. The code uses D3 v5’s `scaleBand`, `scaleLinear`, `max`, and `format` for axes and tick labels, while the dataset is loaded via `d3.csv` from a GitHub URL. A simple tooltip is provided through SVG `<title>` elements showing the formatted population value.
AI-generated descriptionMIT Licensed