Customizing Axes
This bar chart displays the population of the top 10 most populous countries using 2018 United Nations estimates from the World Population Prospects report. It highlights how d3.axisBottom and d3.axisLeft can be customized through tick formats, sizes, and colors, with pink gridlines and removed domains. The visualization uses d3.csv, d3.scaleLinear, and d3.scaleBand, rendering SVG rectangles filled with steelblue. Population values are formatted compactly using d3.format with the suffix 'G' replaced by 'B' for billions.
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.