Customizing Axes
This bar chart shows the top 10 most populous countries as of the 2018 United Nations estimate, with country names on the y-axis and population in billions on the x-axis. It highlights customized D3 axes, including a tick format that converts gigapopulation to billions, removed axis lines, and added labels. Built with d3-scale and d3-axis, the SVG chart loads data from a local CSV and applies custom styles for tick text, axis labels, and the 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.