Making a bar chart
✓ Published1🌍 Public
A bar chart displays the 2018 population estimates for the top 10 most populous countries, sourced from United Nations: World Population Prospects 2017. The bars are rendered in SVG using D3 v5, with `d3.scaleLinear` mapping population to width and `d3.scaleBand` positioning countries along the vertical axis. Customized `d3.axisLeft` and `d3.axisBottom` axes show the country names and population values, while `d3.csv` loads the data file.
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. It also demonstrates customization of D3 axes.
MIT Licensed