Skip to main content
100%

Let's make a bar chart

✓ Published1🌍 Public
OOleg
Last edited Oct 29, 2020
Created on Oct 29, 2020
Forked from Let's make a face

This bar chart displays population figures for ten countries, using horizontal bars sorted alphabetically by country name. The chart loads data from a CSV file and renders as an SVG, with D3 v6 methods like `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` constructing the scales and axes. Population values are parsed and multiplied by 1000 before being mapped to bar widths, with steelblue rectangles and a left margin accommodating country labels.

AI-generated description
MIT Licensed

Similar vizzes