Viewing a saved revision (read-only)
547c99d2440b4eb0a75b7c86ca66ca04
Customizing Axes
A bar chart displays the 2018 populations of the ten most populous countries, with countries on the y-axis and population magnitudes on the x-axis. This example highlights how to customize D3 axes by removing domain lines, applying a tick format that converts values to billions, and adding a descriptive axis label. Built with d3.csv, d3.scaleLinear, and d3.scaleBand, the chart uses SVG rendering and relies on axes generated by d3.axisBottom and d3.axisLeft, with styling handled through CSS. Data originates from the United Nations World Population Prospects 2017.
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.