Customizing Axes
This animated bar chart shows the top 10 most populous countries in 2018, using data from the United Nations World Population Prospects 2017. It demonstrates custom D3 axis styling, including tick formatting that converts values to abbreviated units and removing axis domains. The visualization uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` with SVG rendering. After an initial render, a delayed transition updates the data to show population values multiplied by 10,000, re-calling the axis with a `format` function for tick labels.
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.