🌍 Public
Viewing a saved revision (read-only)
81ac7a5835d640b183882e70bc7d839e
Making a bar chart
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