Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

31590eba17d04694b6e579def28c01b8

Customizing Axes

0 stars0🌍 Public
MMohamed Hamza
Last edited Oct 23, 2020
Created on Oct 23, 2020
Forked from Customizing Axes

This example displays a horizontal bar chart of the top 10 most populous countries in 2018, using data from the United Nations World Population Prospects. It shows how to customize D3 axes by removing the domain lines, applying tick formatting with `d3.format` to abbreviate numbers, and adding custom axis labels and a title. The visualization uses D3 v5 with `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, rendering bars in SVG with population scaled to 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.