Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
YYogesh Joshi
Last edited Jul 19, 2019
Created on Jul 19, 2019
Forked from Customizing Axes

This bar chart shows the population of the top 10 most populous countries, ordered vertically by country name, with a horizontal axis for population values. The chart highlights customized axes: the y-axis removes its domain line and tick lines, while the x-axis uses a custom tick format via `d3.format` that replaces 'G' with 'B' (e.g., 1.4B) and draws grid lines with `tickSize`. The SVG is built using `d3.scaleLinear` and `d3.scaleBand`, with axes rendered by `d3.axisBottom` and `d3.axisLeft`. Data comes from the 2018 UN World Population Prospects estimate.

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