Skip to main content
100%

Customizing Axes

✓ Published3🌍 Public
PPhilRG
Last edited May 18, 2020
Created on May 13, 2020
Forked from Customizing Axes

This horizontal bar chart displays the population of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects estimate. Built with D3 v5, it customizes the axes by removing default domain lines, applying a tick format that converts "G" to "B" for billions, and styling tick labels and grid lines via CSS. The left axis uses `axisLeft` with scaleBand, while the bottom axis uses `axisBottom` with scaleLinear and negative tick lengths to create gridlines. Population values are multiplied by 1000 to convert from thousands.

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