Customizing Axes
This horizontal bar chart shows the top 10 most populous countries in 2018, with population values from the United Nations World Population Prospects 2017 dataset. The visualization customizes D3 axes by removing default domain lines and tick marks, adding grid lines with a light color, formatting population labels with a custom `.replace('G', 'B')` function, and appending custom axis and title text. Using `d3.axisBottom` and `d3.axisLeft`, the SVG rendering applies a steelblue fill to bars and styled fonts for readability.
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.