Customizing Axes
This bar chart displays the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects, with population values in thousands. The visualization demonstrates custom axis styling in D3 v5, including tick formatting that abbreviates large numbers with suffixes like "B" for billions, rotated tick labels, and removed axis domain lines. The chart uses `scaleLinear` for the population axis and `scaleBand` for countries, with `axisBottom` and `axisLeft` for the axes. The code also adds custom titles and axis labels, while styling ticks, lines, and text through CSS.
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.