Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

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

Comments

Sign in to join the discussion.

MIT Licensed