Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 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
MIT Licensed

Similar vizzes