Making a Bar Chart
✓ Published1🌍 Public
This bar chart shows the estimated 2020 populations of several countries, using data from the United Nations World Population Prospects 2017. Population values are displayed as horizontal bars, sorted alphabetically by country name, with the chart rendered as an SVG. The visualization uses d3.csv to load the data, and d3.scaleLinear and d3.scaleBand to map population values and country names to screen positions. Axes are generated with d3.axisLeft and d3.axisBottom, while bars are appended as SVG rectangles with a steelblue fill.
AI-generated descriptionThis bar chart shows population of the countries. The data comes from the year 2020 estimate in United Nations: World Popultion Prospects 2017.
MIT Licensed