Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customising Axes

Public visualization

Viewing a saved revision (read-only)

340f83645c6d4dcd98dcfa194cb65d88

Customising Axes

0 stars1🌍 Public
NNadia W.
Last edited May 9, 2020
Created on May 9, 2020
Forked from Making a bar chart

This bar chart displays the top 10 most populous countries, using 2018 population estimates from the United Nations World Population Prospects 2017. The chart customizes its axes by removing domain lines and tick marks from the left axis, and formatting the bottom axis ticks using `format()` to abbreviate large numbers (e.g., turning "1.4G" into "1.4B") and adding a label. Grid lines are created via the `axisBottom()` tick size, while the left axis is rendered with `axisLeft()` after stripping its decorative elements. The visualization is built with d3 v5, using `csv()` to load data and `scaleLinear()` and `scaleBand()` for scaling.

AI-generated description

Making a bar chart

This bar chart shoes population of the top 10 most populous countries. The data comes from the year 2018 estimate in [United Nations: World Population Prospects 2017].