Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Customizing Axes

Public visualization

Viewing a saved revision (read-only)

55037264d348469baef6035eabfdb86f

Fork of Customizing Axes

0 stars0🌍 Public
BBeihaiTianming
Last edited Feb 18, 2021
Created on Feb 18, 2021
Forked from Customizing Axes

This bar chart displays the estimated 2018 populations of the ten most populous countries, sourced from the UN World Population Prospects and loaded via `d3.csv`. It showcases customized D3 v5 axes: the bottom axis uses a `.tickFormat` with `d3.format` to abbreviate numbers (e.g., “1.4B”), and both axes have their domain lines removed. The chart uses `d3.scaleLinear` for population and `d3.scaleBand` for countries, with static axes rendered as SVG.

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.