Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Mmellerjakub88
Last edited May 13, 2019
Created on May 13, 2019
Forked from Making a Bar Chart

This example displays the population of the top 10 most populous countries in 2018, using data from the United Nations’ World Population Prospects 2017. The visualization loads a CSV file with `d3.csv`, converts the population values to numbers, and renders them as steel-blue SVG rectangles. The code uses D3 v5’s `select` and `csv` methods, with the chart dimensions taken from the SVG element’s width and height attributes. No axes or labels are added in the current implementation, and the data is only logged to the console.

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.

MIT Licensed

Similar vizzes