Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Hhirokat
Last edited Jul 16, 2020
Created on Jul 16, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. It shows how D3 v5 axis methods (axisLeft and axisBottom) can be customized—removing domain lines, adding tick marks that span the chart, and formatting tick labels with a custom function that abbreviates large numbers. The code also applies a scaleBand for countries and scaleLinear for population, with an SVG renderer and styles from an external stylesheet.

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.

MIT Licensed

Similar vizzes