Customizing Axes
This visualization displays the population of the top 10 most populous countries using a horizontal bar chart, with data from the 2018 United Nations World Population Prospects estimate. It demonstrates customized D3 axes, including formatted tick labels that abbreviate large numbers (converting billions to "B") and removed domain lines. The chart uses d3.scaleLinear and d3.scaleBand with axisLeft and axisBottom, while SVG rendering handles the visual output. The code also customizes tick styling and adds axis labels and a title through D3 selections and 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.