Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

7efc4e240d404ac1ba101730f09bc430

Customizing Axes

0 stars1🌍 Public
TTolldvis
Last edited May 9, 2019
Created on May 7, 2019
Forked from Customizing Axes

This bar chart displays the minimum wage for Connecticut, Massachusetts, and Rhode Island, using 2018 United Nations population data as a secondary reference. The example demonstrates how to customize D3 axes. The code uses `d3.scaleLinear` and `d3.scaleBand` for scales, `d3.axisLeft` and `d3.axisBottom` for axes, and `d3.csv` to load the data. It removes default axis domains, adds custom axis labels, and styles tick marks and text via CSS.

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.