Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Customizing Axes

0 stars1🌍 Public
Ssarakouz
Last edited Nov 15, 2020
Created on Nov 15, 2020
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. The visualization uses D3 v5 with SVG rendering, and its horizontal bars are scaled using `d3.scaleLinear` and `d3.scaleBand`. Customized axes include a bottom axis with tick formatting that converts large numbers to abbreviated units (e.g., B for billions) via `d3.format`, and a left axis stripped of its domain line. Gridlines and axis labels are styled through CSS classes, with the data loaded from a CSV file.

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.

Comments

Sign in to join the discussion.

MIT Licensed