Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
CCL
Last edited Jan 25, 2022
Created on Jan 25, 2022
Forked from Smiley Face Part I

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map populations and country names to the SVG canvas, with axes drawn via `axisLeft` and `axisBottom`. The chart’s bars are rendered as SVG rectangles, styled with CSS. Population values are loaded from a local CSV file and multiplied by 1,000 before rendering.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes