Customizing Axes
✓ Published1🌍 Public
This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. It shows how D3 v5 axis methods (axisLeft and axisBottom) can be customized—removing domain lines, adding tick marks that span the chart, and formatting tick labels with a custom function that abbreviates large numbers. The code also applies a scaleBand for countries and scaleLinear for population, with an SVG renderer and styles from an external stylesheet.
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.
MIT Licensed