Customizing Axes
This visualization displays a bar chart of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart customizes D3 axes by removing default domain lines, adding custom tick formatting that converts values from giga to billions, and extending tick lines across the chart. The code uses d3.select, d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, d3.axisBottom, and d3.format to construct the SVG visualization, styling axis labels, titles, and ticks 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.