Fork of Fork of Customizing Ax
This bar chart visualizes the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The code uses D3 v5 APIs including `csv` for data loading, `scaleLinear` and `scaleBand` for scales, and `axisLeft` and `axisBottom` for axes. Countries are abbreviated to their first three letters, and population values are scaled by 1000. The example demonstrates axis customization, including tick font sizes and removal of axis lines, rendering as an 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.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.