Skip to main content
100%

Customising Axis

✓ Published1🌍 Public
AAdeola Oni
Last edited Apr 2, 2020
Created on Apr 2, 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. The visualization customizes both D3 axes: the left axis has all domain lines and tick lines removed, while the bottom axis uses a tick format that converts values from billions to a compact "B" suffix and extends tick lines across the plot. The chart applies a steelblue fill to all bars and uses custom font styles for ticks, labels, and the title. Data is loaded from a CSV file and scaled using `scaleLinear` and `scaleBand`.

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