Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Mmathsmi
Last edited May 25, 2020
Created on May 25, 2020
Forked from Customizing Axes

This bar chart displays the population of Quebec’s administrative regions, using data from the 2017 United Nations World Population Prospects. The example highlights customized D3 axes, including a left axis stripped of its domain line and ticks, and a bottom axis with a custom tick format that abbreviates numbers (e.g., converting millions to “M”). The SVG rendering uses d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom, with axis labels and tick styling applied 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