Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Pphdiamantino
Last edited Sep 18, 2020
Created on Sep 18, 2020
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The chart showcases customized D3 axes: a horizontal axis with tick labels formatted to abbreviate millions and billions, while the vertical axis removes its domain line and tick marks. D3's `scaleBand` and `scaleLinear` position the bars, with `axisLeft` and `axisBottom` generating the axes. The SVG rendering includes styled tick lines, a title, and an axis label, demonstrating how to tailor axes for a cleaner presentation.

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