Skip to main content
100%

Bar chart

✓ Published1🌍 Public
WWahe3bru
Last edited Feb 4, 2020
Created on Feb 4, 2020
Forked from Bar chart

A horizontal bar chart displays population counts for ten countries, using bar length to encode values from a CSV dataset. The visualization uses D3 v5 with SVG rendering, employing `scaleLinear` for the x-axis and `scaleBand` for categorical y-axis labels. Axes are generated with `axisLeft` and `axisBottom`, while `selectAll`, `data`, and `.enter()` append rectangles for each bar. Population numbers are parsed and multiplied by 1000, with margins applied to the chart layout.

AI-generated description

following FCC youtube channel on D3

MIT Licensed

Similar vizzes