Fork of Making a Bar Chart V2
✓ Published0🌍 Public
This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects 2017. The code uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to build the visualization, with population values loaded from a CSV file. The chart customizes the x-axis tick labels with a `format` function that abbreviates numbers, and removes axis domains and tick lines for a cleaner look. Bars are drawn as SVG rectangles filled with steelblue.
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