Customizing Axes
✓ Published0🌍 Public
This example shows the top 10 most populous countries using a bar chart based on 2018 United Nations population estimates. It customizes D3 v5 axes by using `d3.axisLeft` and `d3.axisBottom` with tick formatting via `d3.format`, removing the domain line, adjusting tick padding, and adding grid lines. The SVG rendering also modifies tick labels to display alternating country names and applies custom CSS styling.
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.
MIT Licensed