Fork of Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the population of the top 10 most populous countries in 2018, based on data from the United Nations World Population Prospects. It uses D3 v5 to load a CSV file, scale the population values linearly, and arrange countries on a band scale, with population shown in thousands. The visualization customizes the axes by removing domain lines, applying a compact tick format, and adding gridlines. The code imports specific D3 modules like scaleLinear, scaleBand, axisLeft, and axisBottom, rendering in SVG.
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