Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
SSergio Peña
Last edited May 3, 2019
Created on Apr 28, 2019

This bar chart displays the populations of the ten most populous countries in 2018, with data from the United Nations World Population Prospects 2017. The chart uses D3 v5’s `csv` loader to parse the data, then applies `scaleLinear` for the population axis and `scaleBand` for the country axis, rendering bars as SVG rectangles. Axes are added via `axisLeft` and `axisBottom`, and each country’s population value is multiplied by 1,000 to reflect actual figures. The visualization is styled with steel-blue bars and a clean white background.

AI-generated description

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

MIT Licensed

Similar vizzes