Skip to main content
100%

Customizing axes

✓ Published1🌍 Public
Mmellerjakub88
Last edited May 13, 2019
Created on May 13, 2019
Forked from Making a Bar Chart

This bar chart displays the populations of the ten most populous countries, using data from the 2018 United Nations World Population Prospects. It shows raw population values on a linear scale, with country names on a categorical band scale. The example customizes axes by removing domain lines, styling tick lines, and reformatting tick labels with `d3.format` to replace “G” with “B” for billions. It uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft`, rendering as SVG.

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.

MIT Licensed

Similar vizzes