Customizing Axes
✓ Published1🌍 Public
This bar chart displays the populations of the ten most populous countries using 2019 data from the United Nations World Population Prospects. The visualization customizes both axes: the y-axis removes default domain and tick lines, while the x-axis applies a tick formatter that converts large numbers into abbreviated units, replacing 'G' with 'B' for billions. Built with d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom, the SVG chart includes horizontal gridlines, a population label, and a title. Population values are multiplied by 1,000 to reflect the raw data.
AI-generated descriptionThis bar chart shows population of the 10 most populous countries. The data comes from the year 2019 estimate in United Nations: World Population Prospects 2019.
MIT Licensed