Skip to main content
100%

Bar chart hw1

✓ Published0🌍 Public
王王神鐸
Last edited Mar 24, 2021
Created on Mar 23, 2021
Forked from Making a Bar Chart

This bar chart displays the population of ten countries, sorted by country name, with horizontal bars scaled by population in thousands. It uses a linear population scale and a band scale for countries, rendering via SVG through D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`. The axis labels and tick formatting use `format('.3s')` to abbreviate large numbers. The visualization loads data from a CSV file using D3’s `csv` function, then applies the scales and axes to draw the chart with a clear margin-based layout.

AI-generated description
MIT Licensed

Similar vizzes