Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
PPabloReyesBetanzo
Last edited Dec 27, 2018
Created on Oct 31, 2018
Forked from Let's Make a Face

This bar chart ranks the populations of twenty countries, with horizontal bars sorted from most to least populous. The chart loads data from a CSV file and uses D3 v5’s `csv`, `scaleLinear`, and `scaleBand` to compute the scales, then renders rectangles as SVG elements. Axes are drawn with `axisLeft` and `axisBottom`, and each bar’s fill color is set to steel blue via CSS.

AI-generated description
MIT Licensed

Similar vizzes