Skip to main content
100%

Assignment 2 1q

✓ Published0🌍 Public
HHarshiiiiiiiip
Last edited Jul 21, 2023
Created on Jul 17, 2023
Forked from Making A Bar Chart

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 description
MIT Licensed

Similar vizzes