Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

df3937f6d3fb428b8a7892bdbc0ff5ab

Customizing Axes

0 stars1🌍 Public
Mmaria-kou
Last edited Jun 4, 2020
Created on Jun 4, 2020
Forked from Customizing Axes

A bar chart displays the 2018 populations of the ten most populous countries, with countries on the y-axis and population magnitudes on the x-axis. This example highlights how to customize D3 axes by removing domain lines, applying a tick format that converts values to billions, and adding a descriptive axis label. Built with d3.csv, d3.scaleLinear, and d3.scaleBand, the chart uses SVG rendering and relies on axes generated by d3.axisBottom and d3.axisLeft, with styling handled through CSS. Data originates from the United Nations World Population Prospects 2017.

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.