Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
MMercPai
Last edited Jun 9, 2019
Created on Jun 9, 2019

This bar chart shows the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The chart displays horizontal bars with country names on the y-axis and population values on the x-axis, using an SVG rendering approach. The code uses `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` from d3 v5 to load the data, scale the values, and draw the axes and rectangles.

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