Skip to main content
100%

Making a bar chart

✓ Published2🌍 Public
Ddtdenver
Last edited Oct 27, 2019
Created on Oct 21, 2019

This bar chart displays the population of the ten most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. Rendered as SVG, the visualization encodes population on a linear x-axis and country on a categorical y-axis. The code leverages D3.js v5 APIs including `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load the data, compute scales, and draw axes. Bars are appended as `rect` elements, and the data is preprocessed by multiplying the population values by 1000.

AI-generated description

This bar chart shows population of the to 10 most populous countries. The data comes from the year 2018 estimate in United Nations World Population Prospects 2017.

MIT Licensed

Similar vizzes