🌍 Public
Viewing a saved revision (read-only)
dd97f8e7b2784ad58ddec1586df34387
Making a Bar Chart
This example shows a bar chart ranking countries by population, with the data read from a CSV file and rendered as SVG rectangles. It uses D3 v5’s `csv` loader, `scaleLinear` and `scaleBand` for axes, and `axisLeft`/`axisBottom` to display the country names and population values. The chart applies margins and a steelblue fill to each bar.
AI-generated description