Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
KKevinw97
Last edited Jan 22, 2020
Created on Jan 22, 2020
Forked from Customizing Axes

This example displays a horizontal bar chart of the top 10 most populous countries, based on 2018 United Nations population estimates read from a CSV file. It demonstrates custom axis styling with d3-scale and d3-axis, using `scaleLinear` for population and `scaleBand` for country names. The axes remove their domain paths and tick lines, format large numbers with d3.format, and add custom labels and a title, all rendered in SVG.

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