Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

de93b7adef17480e8cf0dc7a847a224c

Customizing Axes

0 stars0🌍 Public
Lleothimoteo
Last edited Aug 23, 2020
Created on Aug 23, 2020
Forked from Customizing Axes

This bar chart displays the populations of the world’s ten most populous countries, using 2018 estimates from the United Nations World Population Prospects. It highlights how D3 axes can be customized for appearance and readability. The visualization uses d3.csv, d3.scaleLinear, d3.scaleBand, and d3.axisLeft to render countries along the vertical axis and population values as horizontal bars. SVG elements are styled via external CSS, with tick labels, grid lines, and text sizes adjusted through the .tick class.

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.