Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
SScubaman911
Last edited Nov 1, 2019
Created on Nov 1, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 United Nations population estimates, with China and India leading by a wide margin. The example focuses on customizing D3 axes, removing default domain lines and using tick lines as horizontal gridlines. It employs `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with custom tick formatting that converts billions to abbreviated labels. The SVG rendering includes styled tick text, an axis label, and a chart title, all defined through CSS classes.

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