Skip to main content
100%

Customizing Axes

✓ Published3🌍 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.

MIT Licensed

Similar vizzes