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 30, 2019
Created on Aug 27, 2019
Forked from Making a bar chart

This horizontal bar chart displays population figures for African regions, using bars scaled by population size. Built with D3 v5, it employs `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisBottom` and `axisLeft` to render axes. Data is loaded from a CSV file via `csv`, and the SVG output is styled with steelblue bars and custom tick labels. The chart includes axis labels and a title, with margins calculated from the SVG’s width and height.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed