🌍 Public
Viewing a saved revision (read-only)
5a42a8cda2dc43a0802de24b5d1fb55e
Making a bar chart
This example shows a horizontal bar chart of population figures for regions in Africa. It uses D3 v5 to load the CSV data and render SVG rectangles, with a linear scale for population values and a band scale for country names. Axes are generated using `axisLeft` and `axisBottom`, and a margin-based layout positions the chart within the SVG canvas. The bars are styled with a steelblue fill via CSS.
AI-generated description