Assignment 2 1q
✓ Published0🌍 Public
This bar chart displays the population counts of ten countries, with China as the largest bar and Pakistan as the smallest. It uses D3 v7’s `scaleLinear` and `scaleBand` to map population values and country names to SVG rectangles, with axes generated via `axisLeft` and `axisBottom`. Population data from a CSV is loaded with `d3.csv`, with values converted from raw numbers to thousands. The chart renders as a red-filled SVG graphic with a 100-pixel left margin for country labels.
AI-generated descriptionMIT Licensed