Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Aabdullatku
Last edited May 14, 2020
Created on May 14, 2020
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries based on 2018 United Nations estimates, with customized axes for improved readability. The code uses D3 v5’s `scaleLinear`, `axisBottom`, and `axisLeft` to render the chart, and `format('.3s')` to abbreviate population numbers. Visual customizations include removing axis domain lines, adding a custom axis label, and styling tick marks and labels. Data is loaded from a local CSV file using `d3.csv`.

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