Skip to main content
100%

Make a bar chart

✓ Published0🌍 Public
1123fischer
Last edited Nov 16, 2020
Created on Nov 16, 2020
Forked from Customizing Axes

A horizontal bar chart displays population figures for ten countries, ranked from largest to smallest. The chart uses D3 v5 with `csv` to load data and `scaleBand` for the categorical y-axis, while `scaleLinear` maps population values to bar widths. Axes are added with `axisLeft` and `axisBottom`, and bars are rendered as SVG `rect` elements. The data is read from `data.csv`, with population values multiplied by one thousand during preprocessing.

AI-generated description
MIT Licensed

Similar vizzes