Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Aayushcha
Last edited Sep 15, 2019
Created on Sep 15, 2019
Forked from Customizing Axes

This example displays a horizontal bar chart of the top 10 most populous countries, using 2018 population estimates from the United Nations World Population Prospects. The visualization customizes D3 axes by removing the y-axis domain line and tick lines, formatting x-axis tick labels from billions to abbreviated values using `d3.format`, and adding a custom axis label. It uses `d3.scaleBand` and `d3.scaleLinear` with SVG rendering. The chart builds on a previous bar chart tutorial, demonstrating additional axis styling and layout adjustments.

AI-generated description

This 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

Similar vizzes