Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
Ttheaddies
Last edited Feb 24, 2022
Created on Feb 21, 2022

This example shows a horizontal bar chart ranking the populations of ten countries, using a linear scale for population values and a band scale for country names. It visualizes data loaded from a CSV file with `d3.csv`, and scales using `scaleLinear` and `scaleBand`. The chart renders SVG rectangles with axes generated by `axisLeft` and `axisBottom`, plus margins and padding for clear layout.

AI-generated description
MIT Licensed

Similar vizzes