Customizing Axes
This interactive bar chart ranks the top 10 most populous countries using 2018 United Nations population estimates, with values converted to thousands. The visualization demonstrates advanced axis customization in D3 v5, including tick formatting that abbreviates numbers (e.g., “1.41B”), gridlines extending across the plot, and removal of default axis domains. Using `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, the chart also features custom styling for tick labels, axis labels, and the title via 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.