Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the populations of the top 10 most populous countries from the 2018 United Nations World Population Prospects, using country names on the vertical axis and population on the horizontal axis. Built with D3 v5, it uses `d3.scaleLinear` and `d3.scaleBand` to map data, customizes axes with `d3.axisBottom` and formatted tick labels, and renders bars as SVG rectangles styled via external CSS. Population values are read from a CSV and scaled by 1,000.
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