Making a Bar Chart
✓ Published1🌍 Public
A bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects 2017. The visualization reads data from a CSV file and renders each country as a rect element in an SVG canvas. The code uses d3.select, d3.csv, and d3’s data join to append rectangles, with population values converted to thousands and a fixed bar size. The chart is drawn in steelblue.
AI-generated descriptionThis 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