Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ssarakouz
Last edited Nov 30, 2020
Created on Nov 30, 2020
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using a horizontal layout, with country names on the y-axis and population values on the x-axis. The visualization highlights custom axis styling, including removed default axis lines, tick marks with a gray tone, and formatted population labels that abbreviate large numbers using D3's `format` function. It uses `d3.csv` to load population data, `d3.scaleBand` for the categorical y-axis, and `d3.scaleLinear` for the numeric x-axis, rendering with SVG. The chart also adds a custom title and axis label.

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