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
BBlake Akapita
Last edited Sep 1, 2020
Created on Sep 1, 2020

This horizontal bar chart displays the populations of the ten most populous countries, using steel-blue rectangles scaled by population value. The visualization loads data from a CSV file and renders with D3 v5, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` for gridlines. SVG elements are appended programmatically, with population values converted from thousands to raw numbers before scaling.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed