Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ttkreglhn
Last edited Apr 15, 2019
Created on Apr 15, 2019
Forked from Customizing Axes

This example shows a horizontal bar chart of the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. The visualization highlights custom axis styling, removing default domain lines and tick lines on the y-axis while adding grid lines and a formatted x-axis that converts values from billions to a "B" suffix. The code uses D3.js v5, scaling data with `scaleLinear` and `scaleBand`, and configures axes via `axisBottom`, `axisLeft`, and `.tickFormat`. Custom fonts, colors, and labels are applied through CSS, with SVG rendering for the output.

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.

MIT Licensed

Similar vizzes