Customizing Axes
This bar chart displays the top 10 most populous countries in 2018, based on United Nations data, with population values scaled to thousands. It demonstrates customized D3 axes: the y-axis removes domain and tick lines for a cleaner look, while the x-axis uses tick formatting to convert values to billions and applies a custom label. The chart is rendered as SVG using d3.scaleLinear, d3.scaleBand, d3.axisBottom, and d3.axisLeft, with styled tick text and a title.
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.