🌍 Public
Viewing a saved revision (read-only)
bda4ff9eb32d44d4a78ab1d449b0db62
Making a Bar Chart
A bar chart displays population estimates for ten countries from a CSV file, with horizontal bars sorted by country name. D3 v5 loads the data via `csv`, scales it with `scaleLinear` and `scaleBand`, and renders SVG rectangles. Axes are generated using `axisLeft` and `axisBottom`. The chart is drawn inside an SVG element with margins applied through a group transform.
AI-generated description