Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Customizing Axes

0 stars1🌍 Public
Ffiona187412
Last edited Sep 8, 2019
Created on Sep 8, 2019
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries using data from the United Nations World Population Prospects 2017 estimate. The chart demonstrates extensive customization of D3 axes, including formatted tick labels that convert large numbers to abbreviated form (e.g., G to B), removal of domain lines, and styled tick marks with pink grid lines. The code uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` from D3 v5, rendering the visualization as SVG with custom margins, axis labels, and a title.

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