Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

e6e6c8925aa34ae99c6c5a106b23c393

Customizing Axes

0 stars3🌍 Public
SShuyu Zheng
Last edited Jan 11, 2021
Created on Jan 11, 2021
Forked from Making a Bar Chart

This bar chart displays the 2018 populations of the top 10 most populous countries, using data from World Population Prospects 2017. It uses `d3.scaleLinear` and `d3.scaleBand` for positioning, with `d3.axisLeft` and `d3.axisBottom` for axes. The x-axis tick format converts numbers to abbreviated forms like “B” via `d3.format`, and grid lines are created by setting `tickSize` to the full chart height. Countries are ordered by population with bars rendered as SVG rectangles in steelblue.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.