Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
AAnne Kerr
Last edited Jun 9, 2019
Created on Jun 9, 2019
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries, based on 2018 United Nations estimates, with populations shown in millions. It demonstrates how to customize D3 axes by removing default domain lines, adding custom tick formatting that converts billions to millions, and applying custom styles to tick labels and grid lines. The visualization uses D3 v5’s `scaleBand` and `scaleLinear` for scales, along with `axisLeft` and `axisBottom` for the axes, rendered as SVG within an HTML page.

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