Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Zzahra929
Last edited Nov 26, 2020
Created on Nov 26, 2020
Forked from Customizing Axes

This example displays the population of the top 10 most populous countries from the 2018 United Nations World Population Prospects estimate. It shows how to customize D3 axes by removing domain lines, adding tick marks and labels, and styling text. Using d3.scaleLinear and d3.scaleBand, the code formats x-axis values with d3.format, applies tick sizing, and adds a title and axis label. The SVG renders bars with a steelblue fill.

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