Customizing axes
✓ Published1🌍 Public
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 descriptionThis 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