Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Customizing Axes

Public visualization

Viewing a saved revision (read-only)

6bf06d4ae1ca485fa56d5fcf26864c3c

Fork of Customizing Axes

0 stars0🌍 Public
VVasanth-sureshkumar
Last edited May 10, 2022
Created on May 10, 2022
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations, with population values shown in thousands. It demonstrates how to customize D3 axes using d3.axisLeft for the categorical country labels and d3.axisBottom for the quantitative population scale. The visualization uses d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and renders rectangles in an SVG, with data loaded from a CSV via d3.csv.

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.