Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

81ac7a5835d640b183882e70bc7d839e

Making a bar chart

0 stars1🌍 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