Making a Bar Chart
✓ Published0🌍 Public
A bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. Values are shown in millions, with countries listed along the vertical axis. The visualization uses d3.csv to load data, d3.scaleLinear and d3.scaleBand for scales, and customizes the d3.axisLeft and d3.axisBottom ticks with formatting. Population data is multiplied by 1000 before rendering as styled steelblue SVG rectangles.
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