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
Jjhofang
Last edited Jan 5, 2020
Created on Jan 2, 2020

This bar chart displays the populations of the ten most populous countries, with horizontal bars ordered by country name and sized proportionally to each nation’s population in thousands. The visualization uses D3 v5’s `csv` to load data, `scaleLinear` for the x-axis, `scaleBand` for categorical y-axis positioning, and `axisLeft`/`axisBottom` to render ticks. Bars are drawn as SVG rectangles filled with steel blue, while margins frame the chart on a 960×500 canvas.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed