Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Ttmrose
Last edited May 7, 2019
Created on May 7, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries in 2018, using population estimates from the United Nations World Population Prospects 2017. The example shows how to customize axes with D3 v5, including tick formatting, axis labels, and grid lines. It uses `d3.csv`, `scaleLinear`, and `scaleBand` to map data, while `axisBottom` and `axisLeft` render the axes with custom tick formats converting values to abbreviated units. The SVG rendering removes default axis domains and applies styled tick lines via CSS.

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