Customizing Axes
This example presents a scatter plot of the auto-mpg dataset, showing the relationship between horsepower and miles per gallon. It highlights how D3 axes can be customized using `d3.axisBottom` and `d3.axisLeft` with custom tick formatting via `format('.3s')`, tick sizes that extend across the chart, and removed domain lines. The chart also includes a title and an axis label, with scales built using `d3.scaleLinear` and `d3.extent`. Data is loaded from a remote CSV file.
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.