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 converted to thousands. The visualization highlights custom D3 axes: the bottom axis uses a linear scale with tick formatting that abbreviates large numbers (replacing "G" with "B"), while the left axis removes its domain and tick lines for a cleaner look. Built with D3 v5, it uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft`, rendering as SVG with styled tick text and labels.
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.