Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
HHelenaShu
Last edited Aug 27, 2019
Created on Aug 26, 2019

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
MIT Licensed

Similar vizzes