Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Nndhokalelearning
Last edited Nov 16, 2020
Created on Nov 16, 2020

This bar chart displays the populations of the world’s most populous countries, using horizontal bars ordered by country name. The visualization scales population values linearly and maps countries to categorical bands. Data from World Population Prospects 2017 is loaded via d3.csv, then rendered as SVG rectangles with axes generated using d3.axisLeft and d3.axisBottom. The chart employs d3.scaleLinear and d3.scaleBand to position elements, with margins computed from the SVG dimensions. Population figures are multiplied by 1000 to reflect actual counts.

AI-generated description

D3 Bar Chart. Data comes from World Population Prosoects, 2017 most populous countries

MIT Licensed

Similar vizzes